Join Nostr
2026-08-02 17:55:18 UTC

Barkskin on Nostr: Got this #BIP39 #Checksum Summary What Is It? The checksum is a built-in ...

Got this
#BIP39 #Checksum Summary
What Is It?
The checksum is a built-in error-detection code that ensures your recovery phrase is valid. It sits inside the final word of your seed phrase.

How It Works
Step Process
1 Generate entropy (128 bits for 12 words, 256 bits for 24 words)
2 Apply SHA-256 hash to the entropy
3 Take first 4 bits (12 words) or 8 bits (24 words) of hash = checksum
4 Append checksum bits to end of entropy
5 Split total bits into groups of 11 → each group = one word index (0-2047)
Why You Can't Choose the Last Word Freely
The last word contains the checksum bits. These bits are mathematically determined by SHA-256 of your first words (entropy). Change any word earlier in the phrase → checksum changes → last word must change too.

Why It Exists
Without a checksum:

Typos go undetected
You could silently create a different wallet
Your backup appears valid but fails when restoring
With checksum:

Invalid phrases are rejected immediately
Hardware wallets only accept valid last words
Restoring with a typo fails fast
Analogy
Like an IBAN number: the last digits are a control number. One wrong digit = invalid account. Same principle in BIP39.

Formula (Simple)
checksum = first (ENT/33) bits of SHA256(entropy)
valid_phrase = entropy + checksum → split into 11-bit chunks → map to words

Bottom line: Checksum = fingerprint of your entropy. Ensures you didn't make mistakes. Last word isn't yours to pick—it's locked by math.