Academy School · Chapter 5 of 14
Wallets & Cold Storage
How ownership works, how wallets protect keys, and how to store them safely.
Chapter locked
Complete the previous chapter first.
Academy School builds each concept on the one before it. Return to the course overview to continue from your current chapter.
Return to Academy SchoolPrivate Keys and Ownership
A Bitcoin or Ethereum private key is a randomly chosen number between 1 and just under 2 to the power 256 (a 78-digit number), the size of the secp256k1 elliptic curve both networks use. Wallet software multiplies that number by a fixed point on the curve to get a public key, then hashes or encodes the public key into an address. Each step runs only one way. Anyone can check that a signature matches an address, but nobody can work backwards from the address to the key, and guessing a key at random is hopeless. That is why attackers go after people, devices and backups rather than the mathematics.
The coins never sit inside the wallet. They are entries in the blockchain's shared ledger (unspent outputs on Bitcoin, explained in our UTXO entry, and account balances on Ethereum), copied on thousands of nodes. To spend, your wallet builds a transaction and signs it with the private key. Every node checks the signature against the address before accepting it. Owning crypto therefore means one practical thing: being able to produce that signature.
The consequence cuts both ways. If an exchange holds the key, the balance on your account screen is a promise from the exchange, not something you can sign for. When FTX halted withdrawals in November 2022 and filed for bankruptcy on 11 November 2022, its customers became creditors in a court process that ran for years; our entry on what happens when an exchange goes bankrupt walks through that process. If you hold the key yourself, the reverse risk applies: a lost or copied key has no password reset, no fraud department and no undo button.
Wallet software is a key manager and signing tool, so choosing a wallet is really choosing where the key lives.
Ask one question of every holding: who can produce a valid signature for this address? If the answer is a company, you hold a claim on that company. If the answer is you, nobody can restore access when the key is lost or stop a thief who copies it.
Hot Wallets vs Cold Storage
A hot wallet keeps its private key on an internet-connected device: a phone app, a browser extension or an exchange's online signing server. It is convenient because it can sign in seconds, and it is exposed for the same reason. Malware, a malicious browser extension or a compromised server can reach the key or sign without you noticing.
Cold storage keeps the signing key on a device that never exposes it to an online computer, usually a hardware wallet or a permanently offline machine. Cold storage exists mainly to reduce online attack exposure: the key cannot be stolen remotely if it never touches a networked system. The signing flow shows how. Bitcoin's Partially Signed Bitcoin Transaction format (BIP 174) is a common way to do it:
- An online "watch-only" wallet, which holds only public keys, builds an unsigned transaction.
- The transaction passes to the offline signer by USB, QR code or memory card.
- The signer displays the amount and destination on its own screen. You confirm, and it signs internally.
- Only the signed transaction travels back to the online computer, which broadcasts it.
Malware on the laptop can lie to you on the laptop's screen, but it cannot sign. That is the whole security gain, and it depends on reading the signer's screen.
Cold storage does not make a bad approval safe. On 21 February 2025 the exchange Bybit lost about $1.5 billion from an Ethereum cold wallet, a theft the FBI attributed to North Korea. Bybit said the signing interface had been manipulated to display the correct address while the transaction actually changed the wallet's contract logic. The keys stayed offline; the attackers targeted what humans approved. Our entry on blind signing explains why a screen that cannot decode a transaction is a warning sign.
Keep in a hot wallet only what you would be willing to carry as cash. Larger amounts belong behind an offline signer, and every approval is only as safe as your reading of the signer's own screen.
Seed Phrase Security
Most wallets back up every key with a recovery phrase defined by BIP 39. For a 12-word phrase, the device draws 128 random bits, appends a 4-bit checksum taken from the SHA-256 hash of those bits, and splits the resulting 132 bits into twelve 11-bit groups. Each group picks one word from a list of 2,048. A 24-word phrase works the same way with 256 bits plus an 8-bit checksum.
What a restore actually recreates
When you type the phrase into a new device, it runs the words through PBKDF2 with HMAC-SHA512 for 2,048 rounds, using "mnemonic" plus any optional passphrase as the salt, to get a 512-bit seed. From that seed, the hierarchical deterministic scheme of BIP 32 derives a master key and then every private key along standard paths, such as m/84'/0'/0'/0/0 for the first native SegWit Bitcoin address. The wallet then scans the blockchain for activity. Under BIP 44 it stops looking after 20 unused addresses in a row, which is why funds sent to a far-off address can seem missing until you raise the gap limit.
A restore recreates keys, and therefore control. It does not recreate your labels or notes, and it cannot recreate a passphrase you have forgotten: a different passphrase produces a different, valid and empty wallet, as our BIP 39 passphrase entry explains. Anyone else who types your words gets exactly what you would get.
Why a partial leak is a full leak
Suppose a thief photographs 11 of your 12 words. The missing word has 2,048 possibilities, and the checksum rejects about 15 in every 16, leaving roughly 128 candidates. Even if the thief does not know which position is missing, 12 × 2,048 is 24,576 guesses, seconds of work for a laptop. Covering a word is not protection.
The same logic rules out digital copies. A phrase in a cloud photo, email draft or notes app sits on an internet-connected system, which turns cold storage back into a hot wallet. Write it by hand on paper or stamp it into metal, and store it where fire, flood and curious visitors are all considered.
Treat any 11 of your 12 words as the whole phrase. One missing word leaves only about 128 valid candidates, so the backup must never exist in digital form or in a place another person can read.
Setup and Safety Rules
This procedure closes the most common self-custody mistakes.
- Source the device yourself. Buy from the manufacturer or a reseller it lists, and check the packaging and firmware using the maker's genuine-device check. Our guide to spotting a counterfeit hardware wallet lists the warning signs.
- Let the device generate the words. Reject any device that arrives with a pre-printed recovery card. Whoever wrote that card owns the wallet.
- Write the words by hand and check each against the device screen. Never photograph or type them.
- Test the backup before funding. Use the device's backup check, or wipe and restore, and confirm the first receive address matches the one you saw before.
- Send a small test amount and confirm it arrives before moving the main balance.
- Verify every destination on the device screen, character by character, against an address you obtained independently.
The last step matters because attackers increasingly target the address, not the key. On 3 May 2024 one holder lost 1,155 wrapped bitcoin, worth about $68 million, in an address-poisoning scam. The usual method is to send a tiny transaction from an address whose first and last characters match a contact's, so the fake appears in your history; the victim copies it next time. Most of the value was returned after negotiation, which is rare. On-device verification defeats clipboard malware that swaps addresses, but it only shows what you asked for, so compare the full address with a source outside your transaction history. Our entry on dusting attacks covers the related tracking trick.
Finally, no genuine support agent, wallet maker or exchange will ever ask for your recovery phrase. A request for it is the attack. Revisit your setup with the wallet security checklist after any move or new device.
Before any meaningful transfer, send a test amount and check every character of the destination on the device screen against a source you obtained independently, never against your own transaction history.
Further reading
On Ledgers Academy
- Cold storage and hardware wallets: a beginner guide
- Token approvals and wallet drainers
- MPC wallets and distributed key shares
- Exporting wallet records for tax without exposing keys