Lesson 5 of 9

Wallets, keys and custody

Step 2 of 6

The idea

Coins don't sit in a wallet

Your coins are entries on the blockchain (lesson 01). What you actually hold is the power to move them:

  • A private key is a very large secret number. Whoever knows it can move the coins it controls.
  • A public key is made from the private key by one-way math. An address, the string people send coins to, is made from the public key. You can share an address freely; nobody can work back from it to the private key.
  • To spend, your software uses the private key to produce a signature for that one transaction. Nodes check it with the public key, which must match the address, without ever seeing the private key.

A wallet is software or a device that stores keys, signs transactions and reads your balances from the blockchain. It holds keys, not coins: lose the wallet but keep the keys, and the coins are fine.

Analogy: an address is a glass letterbox. Anyone can look in and drop coins in; only the key holder can open it. Where it stops: there is no locksmith, and a copied key works just as well for a thief.

The seed phrase

Most wallets create a seed phrase (or recovery phrase): usually 12 or 24 ordinary words from a standard list called BIP39. All the wallet's private keys are generated from those words, so whoever has the words has every coin in it.

Rules:

  • Nobody legitimate ever asks for your seed phrase. Not support staff, not an app, not a "recovery service".
  • A transaction cannot be reversed. No bank, exchange or court can pull coins back off the blockchain.
  • Typing the words into a website is giving them away. "Paper wallets" printed from websites are a known scam; today people write the phrase on paper or metal and keep it offline.

Two ways to hold

  • Self-custody: you hold the keys. No exchange stands between you and your coins, and nobody can rescue you. One exception: the issuer of a token such as USDC or USDT can freeze that token at any address, yours included (lesson 06).
  • Custodial: an exchange or other company holds the keys and shows you a balance. Then the exchange is your counterparty: what you own is a promise from that company to give the coins back.

"Not your keys, not your coins" is the crypto slogan for that difference. Exchanges keep some coins in hot wallets (keys on internet-connected machines, so withdrawals are fast) and the rest in cold storage (keys kept offline). Hot wallets are the usual target of attacks.