Every self-custody wallet starts with a short list of words. Whoever holds that list controls every address the wallet will ever create. Lose the list, and no company, support desk or blockchain tool can rebuild it. Most guides stop at “write it down.” This article follows the words backward through the math, so you can see where the wallet actually lives and why a single mistake can go unnoticed.
Step one: random bits
The process begins with entropy, which is a long string of random bits. BIP-39 defines how random entropy is converted into a human-readable list of words that can deterministically regenerate all keys in an HD wallet. The standard allows a fixed range. Mnemonic phrases are 12, 15, 18, 21, or 24 words long, so the entropy must be at least 128 bits and at most 256 bits, always in a multiple of 32. The bits also have to come from a good source. Entropy should be 128 to 256 bits, generated using cryptographically secure random sources. A wallet that draws its bits from a predictable generator produces words that an attacker can guess.
Step two: the checksum
Before any words appear, the wallet adds a checksum. The wallet takes the first “multiple of the length of entropy divided by 32” bits of the entropy’s SHA256 hash, and appends that checksum to the end of the initial entropy. For a 128-bit seed, that means 4 extra bits. The combined string then is read 11 bits at a time, with each chunk selecting one word from a list of exactly 2,048. That arithmetic explains the word counts. 128 bits plus a 4-bit checksum comes out as exactly 12 words, and 256 bits plus 8 checksum bits comes out as exactly 24.
Why the checksum is small, and what that costs you
The checksum is the part most people never think about. It exists to catch mistakes, but it is short. A 12-word phrase carries four checksum bits, so a randomly assembled list of twelve valid words passes validation about one time in sixteen. A 24-word phrase is much stronger. For 24 words, with 8 checksum bits, the probability drops to 1-in-256.
Here is the practical consequence. When a wallet imports a phrase, it reconstructs the entropy, recomputes the SHA-256 hash, and verifies that the checksum bits match. Most accidental errors fail that test, and the wallet refuses the phrase. A wallet client will reject a phrase whose checksum does not match, which catches most accidental changes such as a typo, a swapped word, or a missing word. The weak spot is the rare error that lands on another valid word and happens to pass. In that case the wallet does not show an error. It derives a different wallet, and that wallet is empty. One source puts it bluntly: a typo silently opens a different empty wallet. The user sees a zero balance and may assume the funds were never sent.
Step three: words to seed
The next stage turns the word list into a 512-bit seed. The phrase is normalized to Unicode NFKD, then run through PBKDF2 using HMAC-SHA512 over 2,048 iterations, with the salt formed by the literal string “mnemonic” followed by an optional user passphrase. The output is 64 bytes, or 512 bits, of seed material.
The optional passphrase matters more than most users expect. Changing either the mnemonic or the passphrase produces a different seed and therefore a different deterministic wallet. That means the words alone do not define one wallet. A single set of 12 or 24 words can unlock multiple independent wallets, depending on the passphrase. A forgotten passphrase therefore behaves like a lost word. The words are still valid, but they open the wrong door.
Step four: seed to master key
The 512-bit seed becomes the root of a tree of keys. BIP-32 key derivation is built on two cryptographic primitives: HMAC-SHA512 for key derivation and secp256k1 elliptic curve math for key operations. All the keys and addresses in a BIP32 wallet stem from a single root key known as the master private key. Each child key comes from its parent through a one-way step. It is very easy to work out the associated private keys from the master private key, but impossible to work out the master private key from a private key further down the hierarchy.
This structure explains why one backup covers many accounts. Restoring a seed phrase on any BIP-32-compatible wallet regenerates the full key hierarchy. The wallet does not store each address separately. It recomputes them on demand from the root.
Step five: keys to address
The last stage turns a private key into a public key, then into an address. The public key is derived from the private key using elliptic curve cryptography, specifically the secp256k1 curve. For Ethereum, the address is a short fingerprint of that public key. The derivation takes three steps: serialize the 64-byte uncompressed public key, hash it with Keccak-256 to produce a 32-byte digest, then keep only the last 20 bytes. One detail trips people up. Only the x and y coordinates of the public key are hashed, excluding the initial 0x04 byte. The 0x04 byte only marks the key as uncompressed.
The address is a one-way output. The chain of secrets runs one way only: private key produces public key produces address, and none of those steps can be reversed. That is the link that matters for recovery. An address tells you where funds sit. It cannot tell you the words that produced them. A seed phrase cannot be recomputed from your address, your wallet app or the blockchain.
Why one lost phrase empties the whole wallet
Put the steps together and the picture is simple. The address is a fingerprint of a key. The key is a branch of a tree. The tree grows from a seed. The seed comes from the words. Each step is deterministic going forward and irreversible going back. So the words are the only copy of the root, and no later artifact can stand in for them.
The consequence for recovery is severe. For self-custody, the seed phrase is the unit of recovery. If the seed phrase recovers the wallet, all assets in that wallet are recovered. If the seed phrase is lost, none of the self-custody assets in that wallet are recoverable. The coins do not vanish from the ledger. The coins remain visible on-chain forever, but the key needed to move them cannot be recomputed from anything. No outside party can step in. If you have truly lost your seed phrase with no backup, no one, not even the wallet provider, can recover your funds, by design of self-custody.
Scammers take advantage of that finality. Services promising to recover a truly lost seed phrase are frequently scams, and you should never share your seed phrase with anyone.
The debate: is the design too brittle?
Critics raise several points. The first concerns the stretching step. The BIP-39 specification uses 2,048 PBKDF2-HMAC-SHA512 iterations, a figure set in 2013 and never updated. One vendor estimates that consumer hardware achieves approximately 10,400 passphrase attempts per second against BIP-39. Defenders reply that the design never relied on stretching. One explainer notes that the security model leans on entropy and passphrase, not on key stretching. The strength of a phrase comes from its random bits, so a 24-word phrase with fresh entropy is hard to guess. A short, human-chosen passphrase is the weak point. Two BIP-39 words fall in under ten minutes at approximately 10,000 attempts per second, while six BIP-39 words or twelve random alphanumeric characters provide centuries of resistance. These figures come from one vendor, so treat them as estimates.
The second concern is concentration. Once a master seed is compromised, all keys across all derivation paths and cryptographic domains are permanently exposed. One root is convenient for backup and dangerous for theft. The same tree that makes restoration easy also means a single leak exposes every account under it.
The third concern is inheritance. The same passphrase risk list includes inheritance failure when heirs recover only the seed phrase. An heir who has the words but not the passphrase may find an empty wallet, while the real funds sit behind a second secret nobody wrote down.
Practical steps that follow from the math
- Write the words exactly, in order. Each word is one of 2,048 entries, and a swap is the mistake the checksum is weakest against.
- Test the backup. Restore the phrase on a second device before you move funds. Install the wallet on a second device or a fresh browser profile, choose “restore existing wallet,” and enter your seed phrase. If the balance does not appear, you have a problem to fix while you still have time.
- Record the passphrase separately. If you use one, it is part of the key. Store it apart from the words, and plan how an heir would receive both.
- Keep more than one copy in different places. A lost paper, a burned notebook or a deleted cloud file ends the wallet just as surely as a bad memory.
- Ignore anyone who offers to recover a lost phrase. Support teams for self-custody wallets cannot reconstruct a phrase, so a paid recovery offer is a red flag.
A seed phrase is not a password that a company can reset. It is the root of a one-way chain, and the address you share is only the last link. Treat the words as the wallet itself, because in self-custody they are.
Sources
- What is BIP39? And Why Should You Care? – Blockchain Academy
- BIP-39 (Mnemonic Seed Phrases) – Spark Glossary
- What Is BIP39? Definition and Meaning
- BIP-32: Understanding Hierarchical Deterministic Wallets – Ledger Academy
- What is BIP32? How hierarchical deterministic wallets work – Trezor
- What Is a Public Key in Blockchain? Addresses Explained – Eco
- The Hidden Risks of Using a BIP-39 Passphrase – Frozen Security
- How to Recover a Crypto Wallet: The Scenario Matrix Most Guides Skip – BloFin Academy
- How to Recover a Crypto Wallet – Seed Phrase Recovery Guide – Dextools
