MASTERING-BITCOIN · Interactive Practice | Unit 5 · Video 5
| Formula | Name | Description |
|---|---|---|
| Checksum length | How many bits are appended from the SHA-256 hash | |
| Word count | Total bits divided into 11-bit chunks | |
| Word list size | Each 11-bit chunk indexes one word | |
| BIP39 seed derivation | Mnemonic + optional passphrase produces the 512-bit seed |
Conceptual question: How does the number of entropy bits determine the number of words in your seed phrase, and why does every legal size produce a whole number of words?
Adjust the entropy size below to see the full BIP39 pipeline update: entropy bits, checksum bits, total bits, and the resulting word count.
⚙ interactive visualization — coming to this page format soon
Notice: The checksum is always exactly bits — so 128 bits of entropy gets 4 checksum bits, 256 gets 8. This is why BIP39 only defines entropy sizes that are multiples of 32: any other size would leave fractional bits that don't pack evenly into 11-bit word chunks.
Conceptual question: If 24 words encode 256 bits of entropy, does that make your wallet twice as secure as a 12-word seed?
This chart compares the entropy of BIP39 seed phrases against the security strength of Bitcoin's elliptic curve (secp256k1). The red dashed line is the real ceiling on effective security.
⚙ interactive visualization — coming to this page format soon
Reflect: The hatched region on the 24-word bar represents entropy you have but cannot actually use against a well-resourced attacker — the elliptic curve itself caps security at 128 bits. Extra entropy only pays off in partial compromise scenarios (e.g., an attacker photographs half your seed).
Conceptual question: What does changing the optional passphrase actually do, and why is there no such thing as a "wrong" passphrase?
The same 12 words feed into PBKDF2 with different salts ("mnemonic" + passphrase). Each passphrase deterministically produces a completely different 512-bit seed — and therefore a completely different wallet tree.
⚙ interactive visualization — coming to this page format soon
Notice: Try the "typo" option. Notice there's no error — the PBKDF2 function happily produces a seed for any input string. This is the passphrase landmine: a typo doesn't fail loudly, it just points you at an empty wallet forever.
Question 1
A wallet generates 192 bits of entropy. Using the BIP39 rules, how many checksum bits are appended and how many words does the final mnemonic have?
✅ Correct! 192/32 = 6 checksum bits, and (192+6)/11 = 18 words.
❌ Not quite. Remember: checksum bits = ENT/32, then total bits / 11 = word count.
Solution:
Apply the BIP39 formulas:
So 192 bits of entropy produces 6 checksum bits and 18 words.
Question 2
True or False: A 24-word BIP39 seed phrase gives you roughly twice the effective security against brute force of a Bitcoin public key, compared to a 12-word phrase.
✅ Correct! secp256k1 caps effective security at 128 bits, so extra entropy from 24 words doesn't help against a clean brute-force attack.
❌ Not quite. More entropy isn't always more useful — think about where the cryptographic ceiling comes from.
Solution:
So even though 24 words has more raw entropy, the curve itself caps the effective security at 128 bits. You can't be more secure than the weakest link in the chain. The extra entropy from 24 words only pays off in partial compromise scenarios — for example, if an attacker photographs half your seed.
The correct answer is False.
Question 3
You back up your 12-word seed and use the optional passphrase "CorrectHorse". Months later, restoring on a new wallet, you accidentally type "CorectHorse" (missing an 'r'). What happens?
✅ Correct! Every passphrase is valid — a typo just derives a different wallet silently. This is the BIP39 passphrase landmine.
❌ Not quite. Think about how the passphrase is used — it goes into the PBKDF2 salt, not into any lookup table.
Solution:
Every passphrase is valid in BIP39 — it's just a string that gets concatenated with "mnemonic" to form the PBKDF2 salt. Different salts produce different 512-bit seeds, which produce different HD wallet trees.
This is why a forgotten or mistyped passphrase means the coins are gone forever — there's no error and no recovery.
Question 4
Which statement best describes the role of the 12 words your wallet shows you?
✅ Correct! The words are a portable encoding; the 512-bit seed from PBKDF2 is the real cryptographic root that feeds BIP32.
❌ Not quite. Remember the pipeline: entropy → checksum → words → PBKDF2 → 512-bit seed → BIP32 tree → keys.
Solution:
The full pipeline is:
"mnemonic" + passphrase for 2048 rounds, producing a 512-bit seed.So the words are a portable, human-readable encoding. The 512-bit seed is the real cryptographic root; the individual private keys come from BIP32 derivation on that seed.
Solved: 0 / 4