Sub topic 2
Seed Phrases and Key Derivation
This chapter assumes you know that a blockchain records who owns which coins, that a public key can be shared while a private key must stay secret, and that a wallet uses a private key to sign transactions.
Seed phrases and key derivation
A seed phrase is a list of 12 or 24 common English words. Wallet software creates it from a random number of 128 or 256 bits, using the BIP-39 standard. The software then derives a master key from that number and computes every private key and address from the master key, using the BIP-32 standard. Anyone who has the words can rebuild all of the keys, so the seed phrase is the master secret of the wallet.
Hot wallets versus cold storage
A hot wallet keeps its keys on an internet-connected device or service. It is fast for everyday spending, but malware and phishing can reach it. Cold storage keeps keys offline, for example on a device that never connects to the internet or on a written backup. It is slower to use but safer against remote attacks.
Hardware wallets and what they protect against
A hardware wallet is a small device that generates keys and signs transactions internally. The private key never leaves the device, so malware on your computer cannot copy it. A hardware wallet does not protect you if you type your seed phrase into a fake website, and it does not stop a thief who knows your seed phrase.
Counterparty risk: when the custodian fails
Counterparty risk is the danger that the company holding your coins fails, freezes withdrawals, or misuses your funds. In a custodial wallet, the company holds the keys. Your balance is an entry in the company's database, not coins you control. If the company becomes insolvent, you may become one of its unsecured creditors.
User-error and theft risk: when you are the custodian
In self-custody, you hold the keys, so losing the seed phrase means losing the coins. Common failures include:
- Storing the seed phrase in a cloud note or photo that attackers can reach.
- Typing the phrase into a phishing site or a fake wallet app.
- Writing the phrase on paper that is later destroyed by fire or water.
| Risk | Custodial wallet | Self-custody wallet |
|---|---|---|
| Who holds the keys | The company | You |
| Main threat | Company failure or account freeze | Loss or theft of the seed phrase |
| Recovery path | The company's account process | The seed phrase alone |
Exercise
A friend keeps their seed phrase in a notes app that syncs to the cloud. Which risk does this create, and what should they do instead?
Show answer
The phrase now sits on devices and accounts that attackers can reach. If the cloud account is hacked, every coin in the wallet can be taken. The friend should write the phrase on paper or metal and store that backup offline in a safe place, then delete the cloud copy.