Sub topic 1
Recovery Phrases: What a Recovery Phrase Is and What It Controls
Prerequisites
You should already understand these before you start:
- The basic idea of a self-custody wallet, whether software or hardware.
- The difference between a public address, which you share, and a private key, which you keep secret.
- How to install and use your wallet app.
What a recovery phrase is
A recovery phrase, also called a seed phrase, is a list of 12 to 24 common English words. It is a human-readable copy of the secret your wallet uses to create its private keys. Anyone who holds the phrase can rebuild those keys and spend the funds. If you lose the phrase and the wallet device fails, the funds may be lost for good.
How a phrase becomes keys and addresses
Most wallets follow BIP-39, a standard that converts random entropy (random bits) into words. A checksum is added, so many typing mistakes can be detected. The word count depends on the entropy size.
# Word count of a BIP-39 phrase from entropy size.
for entropy_bits in (128, 160, 192, 224, 256):
checksum_bits = entropy_bits // 32
words = (entropy_bits + checksum_bits) // 11
print(f"{entropy_bits} bits + {checksum_bits} checksum bits = {words} words")A hierarchical deterministic (HD) wallet then uses the phrase to derive a master key. From that key, it derives a tree of private keys and public addresses. The phrase therefore controls every address in that tree, not just one.
What you are protecting against
Your threat model covers three risks:
- Theft: someone copies the phrase.
- Loss: you misplace the written copy.
- Damage: fire, water, or decay destroys the copy.
A backup that resists theft often resists loss and damage poorly, and the reverse holds too. Choose storage that balances all three.
Generating a phrase on a trusted device
Generate the phrase inside your wallet software or hardware device, on a computer you trust, and preferably offline. Never use a phrase that someone else generated or showed you. Never type a real phrase into a script or a networked program.
Writing the phrase down correctly
Write each word with its number, in order, using permanent ink on paper or stamp it into metal. Check every word against the official wordlist, because several words look alike. Do not photograph, type, or save the phrase.
Exercise
A 15-word phrase encodes how many bits of entropy, and how many checksum bits does it contain?
Show answer
Fifteen words at 11 bits each carry 165 bits in total. The checksum is 5 bits, so the entropy is 160 bits.