Bitcoin Basics · 1:29
Keys and Wallets
There's no bitcoin inside a bitcoin wallet. In about 90 seconds, Steady shows where the coins really are (a mailbox on the shared record that anyone can see and pay into), why only one secret key can open it, and why a wallet is really a keyring.
Numbers in this episode
- 78 digits
- A private key is a number picked at random below about 1.16 × 1077 (just under 2256), so it can be about 78 digits long. Guessing one by chance is hopeless.
- 1 key
- Spending a coin needs a signature that only its private key can make. Anyone can check the signature with the matching public key, and the private key is never revealed (Bitcoin whitepaper §2; BIP340).
- 0 coins
- What a wallet holds: keys, not coins. The coins are entries on the shared record, and the wallet keeps the keys that can sign them away.
- No reset
- There is no company or help desk that can recover a lost key. Wallets give you a backup (a list of 12 or 24 words), which is the next episode.
- Satoshi Nakamoto, “Bitcoin: A Peer-to-Peer Electronic Cash System”, section 2 (Nakamoto Institute copy): a coin as a chain of digital signatures
- Antonopoulos and Harding, Mastering Bitcoin, 3rd ed., chapter 4 “Keys and Addresses”: a private key is a number picked at random below about 1.158 × 1077
- BIP340 (Schnorr signatures): signatures are checked with the public key; the private key is never revealed
- Computed from the secp256k1 group order (SEC 2): a number with 78 decimal digits
Transcript
Read the narration
Here's a surprise: there's no bitcoin inside a bitcoin wallet. So what's in there? Keys.
Remember Steady's payment to Max? It landed on the shared record, in a mailbox with Max's address on it. Anyone can see what's inside, and anyone can drop more in.
But only one key opens it: Max's private key. It's just a secret number, about 78 digits long, so big that guessing it is hopeless.
To spend, Max never hands the key over. His wallet uses it to sign the payment, with a seal only his key can make.
Everyone can check that seal against the lock on his mailbox in an instant, without ever seeing the key. That's what owning bitcoin really means: holding the key.
So a wallet is really a keyring. It keeps your keys safe and does the signing. The coins themselves never leave the record.
The catch: no one can reset a lost key for you. Lose it with no backup, and those coins are locked away for good. And anyone who copies it can spend them.
So remember: your address is a mailbox anyone can pay, your key is the only way in, and your wallet is just the keyring. Next: why do wallets hand you 12 or 24 secret words? See you next episode!