Bitcoin Forum
April 27, 2024, 01:07:40 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can a Checksum be used to recover a forgotten data?  (Read 195 times)
NdaMk (OP)
Full Member
***
Offline Offline

Activity: 303
Merit: 136


Defend Bitcoin and its PoW: bitcoincleanup.com


View Profile
April 17, 2022, 08:11:22 AM
Merited by o_e_l_e_o (4), Welsh (1), ABCbits (1)
 #1

Checksums is a 4 bytes of data generated through hashing data twice with SHA256. Checksum is used to check the validity of the original data whenever it is typed. The checksums are included in addresses and WIF private keys. The checksum is created by hashing with SHA 256 twice before then the data for hashing is converted from its string to bytes and after hashing the first 4 bytes is saved as the Checksum.

My questions are;
1. Other than using the first 4 bytes of a hashed can the last 4 bytes also work?

2. Can Checksums be used to recover a forgotten data?     How?

The OGz Club     [ [ [ [ [   The 1st & Only #MemeFi Project   ] ] ] ] ]
Website     ◢ Reddit     ◢ Telegram     ◢ Twitter     ◢ TikTok     ◢ Facebook
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄     ►► Powered by BOUNTY DETECTIVE     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
]
1714180060
Hero Member
*
Offline Offline

Posts: 1714180060

View Profile Personal Message (Offline)

Ignore
1714180060
Reply with quote  #2

1714180060
Report to moderator
Each block is stacked on top of the previous one. Adding another block to the top makes all lower blocks more difficult to remove: there is more "weight" above each block. A transaction in a block 6 blocks deep (6 confirmations) will be very difficult to remove.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714180060
Hero Member
*
Offline Offline

Posts: 1714180060

View Profile Personal Message (Offline)

Ignore
1714180060
Reply with quote  #2

1714180060
Report to moderator
1714180060
Hero Member
*
Offline Offline

Posts: 1714180060

View Profile Personal Message (Offline)

Ignore
1714180060
Reply with quote  #2

1714180060
Report to moderator
1714180060
Hero Member
*
Offline Offline

Posts: 1714180060

View Profile Personal Message (Offline)

Ignore
1714180060
Reply with quote  #2

1714180060
Report to moderator
PrimeNumber7
Copper Member
Legendary
*
Offline Offline

Activity: 1610
Merit: 1899

Amazon Prime Member #7


View Profile
April 17, 2022, 08:30:54 AM
Merited by pooya87 (2), Welsh (1)
 #2

2. Can Checksums be used to recover a forgotten data?     How?
No. A checksum is used to help you quickly determine if a value is valid or not. It is not possible to go from the checksum to the original data (just as it is not possible to go from the hash of data to the original data).

The only way a checksum could potentially help you recover data is if you stored many versions of data, but a particular checksum would only validate one of these versions. This would allow you to quickly determine which version of your data is valid. However, for every checksum, there are an infinite number of potential data that has a given checksum. So using a checksum to recover your data is useless unless you have a limited number of data candidates.
BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1498
Merit: 7292


Farewell, Leo


View Profile
April 17, 2022, 08:35:40 AM
Merited by pooya87 (2)
 #3

1. Other than using the first 4 bytes of a hashed can the last 4 bytes also work?
The last 4 bytes could also be used as a fingerprint, but using the first 4 has been chosen as the standard way. One could choose to use more bytes and not the first nor the last, but the middle ones.

2. Can Checksums be used to recover a forgotten data?     How?
To recover it? No. To help you speed up recovering it? Yes.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
Cookdata
Hero Member
*****
Online Online

Activity: 924
Merit: 876


Not Your Keys, Not Your Bitcoin


View Profile
April 17, 2022, 08:52:31 AM
Merited by Welsh (3)
 #4

My questions are;
1. Other than using the first 4 bytes of a hashed can the last 4 bytes also work?

Checksum use SHA256 as a fingerprint of any data you input. Let's say you have data you want to hash.
You have this data : 4a78e8d3d738ad1f9026009cf394bf7a8c86901b
The SHA56 result gave you: 92036ae0ca79f5b8c10bc9f951b244833be9a5771b00fa7fc63db711f0b6d9fd

The checksum becomes : 4a78e8d3d738ad1f9026009cf394bf7a8c86901b92036ae

It is convenient and standard that way for any software to detect any missing data than taking the last 4 bytes (f0b6d9fd)

Quote

2. Can Checksums be used to recover a forgotten data?     How?

The answer is NO and security-wise it is not safe, if checksum could be used to recover missing data, bitcoin will not be safe as anyone with a few data of private keys can easily exploit that to detect other full private keys details.

NOTE: SHA256 is an irreversible process, you cannot go back to the original data.


nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5538


Self-proclaimed Genius


View Profile
April 17, 2022, 09:07:20 AM
 #5

2. Can Checksums be used to recover a forgotten data?     How?
For address' checksum, there's nothing to recover since the data that's hashed twice is already there.
e.g: Decode the address from BASE58 into HEX, the last 4 bytes is the checksum and the rest is the data that was hashed twice.
(cannot be applied to bech32)

For WIF private key's checksum, it's basically the same (WIF to Private key).
But which data to recover? It's basically the same private key, but in different format.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18507


View Profile
April 17, 2022, 09:12:30 AM
Merited by Welsh (1), ABCbits (1), n0nce (1)
 #6

Note that the answers above refer to the checksums which are present in seed phrases, WIF keys, and legacy addresses. Bech32 addresses have a different method for calculating checksums, known as BCH codes (https://en.wikipedia.org/wiki/BCH_code). These checksums can indeed be used for error correction rather than just error detection, although wallets and services in general don't implement this since there is a very small risk that by fixing the errors in this manner you could change the address in to another valid but incorrect address and then lose your coins by sending them to the wrong address.
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18507


View Profile
April 17, 2022, 12:38:11 PM
Last edit: April 17, 2022, 02:08:06 PM by o_e_l_e_o
Merited by ABCbits (1)
 #7

If you need error correction feature, you could always use Reed-Solomon algorithm. QR code use that algorithm with 4 different capability level, so you just need to generate QR code based on your private key, seed/mnemonic phrase or master private key.
BCH codes are a specific implementation of Reed-Solomon codes. Original Reed-Solomon codes are not suitable for bitcoin due to them only working on strings which are the length of the alphabet minus one. Since our alphabet in Bech32 is 32 characters, they would only work for strings of 31 characters, which is therefore not usable for segwit addresses of 42 or 62 characters long.
NdaMk (OP)
Full Member
***
Offline Offline

Activity: 303
Merit: 136


Defend Bitcoin and its PoW: bitcoincleanup.com


View Profile
April 17, 2022, 02:19:30 PM
 #8

If you need error correction feature, you could always use Reed-Solomon algorithm. QR code use that algorithm with 4 different capability level, so you just need to generate QR code based on your private key, seed/mnemonic phrase or master private key.

But RS can only detect the error but can't correct it, or is there a way to go about it?

The OGz Club     [ [ [ [ [   The 1st & Only #MemeFi Project   ] ] ] ] ]
Website     ◢ Reddit     ◢ Telegram     ◢ Twitter     ◢ TikTok     ◢ Facebook
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄     ►► Powered by BOUNTY DETECTIVE     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
]
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!