Checksum
What Is a Checksum?
A checksum is a short fingerprint of a piece of data. When you receive or re-enter data, software calculates the checksum again and compares it with the checksum attached to the original. If they match, the data is likely unchanged. If they differ, something went wrong, perhaps a typo, a copying error, or data corruption.
The name comes from early methods that literally added together numerical values and stored the total. Modern crypto systems often use hash-based checksums instead. These hash-based checksums are highly sensitive to changes, and altering even one character usually changes the result.
This makes them effective at catching accidental errors, but a checksum alone does not prove that data came from a trusted source or was not deliberately replaced.
How Checksums Work in Crypto
Checksums appear throughout Bitcoin and the broader crypto ecosystem. Two common uses are catching accidental address-entry errors and validating recovery phrases.
For traditional Bitcoin addresses, software takes the first four bytes of a double SHA-256 hash as a checksum. A random accidental change has about a 1-in-4.3-billion chance of still passing. Modern Bitcoin addresses beginning with bc1 use a different checksum format, but serve the same purpose.
In BIP-39 seed phrases, the checksum works differently. The wallet SHA-256 hashes the entropy, takes one bit per 32 bits of entropy, and appends those bits before encoding the result as words. For a 12-word phrase, that is only 4 checksum bits, giving a random sequence of valid words roughly a 1-in-16 chance of passing validation. This means a valid-word substitution during recovery can occasionally pass the checksum and silently derive a different wallet rather than trigger an error.