From Chapter 9: “To go deeper, see NotYourBitcoinBasics.com/seed.”
How 12 or 24 words become every key
The book says the words are a way to write a gigantic number. This page shows how.
Your 12 or 24 words are a very large random number, written in words a person can copy. Standard steps turn those words into every key and address in your wallet. The same words always give the same keys.
Numbers first, words second
The wallet does not pick words. It picks a number, then turns the number into words. Here is the standard (BIP 39) step by step.
- A random number. The wallet makes a random number with 128 bits (for 12 words) or 256 bits (for 24 words). This is called entropy.
- A checksum. It runs that number through SHA-256 and keeps the first few bits of the result: 4 bits for 12 words, 8 bits for 24 words. These are added to the end.
- Groups of 11. The bits are split into groups of 11. That makes 12 groups (132 bits) or 24 groups (264 bits). Each group is a number from 0 to 2,047.
- Words. Each number points to one word on the list of 2,048. Number 0 is “abandon.” Number 2,047 is “zoo.”
That is why the book says the words are a way to write a gigantic number in a form a human can copy.
Why made-up phrases fail
Because of the checksum, the last word is partly decided by the others. If you pick 12 words yourself, only about 1 in 16 combinations will pass the check. For 24 words it is about 1 in 256. A wallet will reject the rest. The checksum also catches most copying mistakes.
From words to keys
The words are not your private key. Two more standard steps turn them into keys.
- Words to seed (BIP 39). The words are run through a slow function (PBKDF2 with HMAC-SHA512, 2,048 rounds). The result is a 512-bit number called the seed.
- Seed to keys (BIP 32). The seed produces one master key, and from it a tree of child keys, each with its own address. A short path says which branch to use, for example:
m / 84' / 0' / 0' / 0 / 0
| Part | Meaning |
|---|---|
| 84’ | The address type: native SegWit, addresses that start with bc1q (86’ is Taproot, bc1p) |
| 0’ | Bitcoin (other numbers are other coins or test networks) |
| 0’ | The first account |
| 0 | Receiving addresses (1 means change addresses) |
| 0 | The first address |
Every step is deterministic. The same words always produce the same seed, the same keys and the same addresses, in any standard wallet, forever. That is why a paper backup works.
The optional passphrase
Some wallets offer a passphrase, an extra word or phrase you choose yourself, sometimes called the twenty-fifth word. It is mixed in at the words-to-seed step. The same 12 or 24 words with a different passphrase make a completely different wallet. It adds protection if someone finds your words. It also adds a new way to lose everything: forget the passphrase, and the words alone open an empty wallet. If you use one, your heirs need to know that it exists.
AI, quantum computers and seed words
Guessing a 12-word phrase means trying about 2 to the 128th power possibilities. AI cannot help, because random words have no pattern. The quantum worry is about something else: public keys that are already visible on the ledger. Chapter 7 covers it.
Look up the BIP 39 English word list (it is public on GitHub). Find “abandon” at the top and “zoo” at the bottom. Then check the book’s point: no two words share the same first four letters.
Never type your real words into any website, app or computer to test this. Practice only with sample words.
Words on this page
- Address
- The number on the mailbox, the thing you hand to someone who wants to pay you.
- Bitcoin Improvement Proposal (BIP)
- A written proposal to change how Bitcoin works.
- Ledger
- A list of who owns how much.
- Private key
- The secret that lets you move your entry.
- Public key
- The key you can share. It is made from your private key, and your wallet turns it into the addresses people pay you at.
- Wallet
- The app or device you use to hold and send bitcoin.
Sources
- BIP 39, “Mnemonic code for generating deterministic keys,” and the English word list, github.com/bitcoin/bips/blob/master/bip-0039.mediawiki.
- BIP 32, “Hierarchical Deterministic Wallets,” github.com/bitcoin/bips/blob/master/bip-0032.mediawiki.
- BIP 84, “Derivation scheme for P2WPKH based accounts,” and BIP 86, “Key Derivation for Single Key P2TR Outputs,” github.com/bitcoin/bips.