What Is a Crypto Wallet? Keys, Not Coins
A crypto wallet stores the keys that control coins on a blockchain, not the coins. How keys become addresses, custodial vs self-custody, hot vs cold.
By SATOSHI'S INTERN Editorial DeskPublished 11 MIN READFacts checked
A crypto wallet is software or a device that stores the private keys controlling your funds on a blockchain, and uses those keys to sign messages and transactions. The coins are not inside the wallet. They are recorded on the blockchain itself, and whoever holds the keys decides where they go next.
That is why a lost backup can mean lost funds, and why anyone asking for your recovery words is asking for the money itself.
Where is your crypto actually stored?
Every coin you own is an entry on a public ledger that thousands of computers keep in sync. ethereum.org puts it bluntly: wallet providers "don't have custody of your funds. They just provide you a window to see your assets on Ethereum and tools to easily manage them." Its developer docs draw the same line: "An account is not a wallet. A wallet is an interface or application that lets you interact with your Ethereum account".
Bitcoin works the same way at this level, with one wrinkle. There are no account balances on the Bitcoin ledger, only individual unspent outputs, each locked to a spending condition. The Bitcoin Wiki notes that addresses "are not wallets nor accounts, and do not carry balances." Your wallet scans the chain for outputs it can spend and adds them up. The balance on your screen is arithmetic.
Hardware wallet makers say the same about their own devices: Trezor notes that your coins "are actually held on the blockchain". The device holds the keys.
Keys, addresses and signatures
Three pieces do all the work:
- Private key. A large secret number. On Ethereum it is 64 hexadecimal characters. Whoever has it can spend.
- Public key. Calculated from the private key with elliptic-curve maths. The calculation only runs one way, so you can share the public key without exposing the private one.
- Address. A shorter, shareable identifier derived from the public key. This is what you give people so they can pay you.
When you send funds, your wallet uses the private key to produce a signature: a proof that the key holder approved exactly this instruction. Nodes check the signature against the public key without ever seeing the secret.
A signature does not always mean a payment. Wallets also sign login messages and permission slips, and some of those permission slips can move tokens. How to tell which is which is covered in wallet signature vs transaction.
How an address comes from a key
This step shows why an address is safe to share and why a typo in one is usually caught.
Bitcoin
The original Bitcoin address type (P2PKH, starting with 1) is built like this:
- Take the private key and compute its public key on the secp256k1 curve (33 bytes in compressed form).
- Hash the public key with SHA-256, then hash that result with RIPEMD-160. You now have 20 bytes.
- Put a version byte in front (
0x00for mainnet). - Hash the result twice with SHA-256 and keep the first 4 bytes as a checksum. Append them.
- Encode everything in Base58Check. The version byte is why the address starts with
1.
Newer formats (bc1q… for native SegWit, bc1p… for Taproot) use a different encoding called Bech32 or Bech32m, but the idea holds: the address commits to a key or a script, and a checksum catches most typos. What each prefix means, and when the format matters, is in what is a Bitcoin address.
Ethereum
Ethereum is shorter. Take the public key, hash it with Keccak-256, keep the last 20 bytes, and write them as hex with 0x in front. That gives the familiar 42-character address.
The mix of upper- and lower-case letters you often see is a checksum defined in EIP-55. According to the EIP, a randomly mistyped address passes that check only about 0.0247% of the time, which is good but, in the EIP's own words, "not as good as a 4-byte check code". Wallets that check it reject most typos. No checksum can reject a correctly typed address that belongs to a scammer.
Solana is simpler again: an account address is a 32-byte value, usually an Ed25519 public key, displayed as a base58 string.
One backup, many keys: HD wallets
A wallet that generates every key independently needs a fresh backup whenever it creates a new key. Modern wallets avoid that by being hierarchical deterministic (HD), a design specified in BIP-32.
The flow is:
- The wallet generates random entropy and shows it to you as a seed phrase, usually 12 or 24 words (BIP-39).
- The phrase is stretched into a 512-bit seed.
- BIP-32 turns the seed into a master key, and the master key into a tree of child keys.
- BIP-44 gives the tree a standard layout:
m / purpose' / coin_type' / account' / change / address_index. Registered coin types include 0 for Bitcoin, 60 for Ether and 501 for Solana.
Two consequences matter to ordinary users. First, one phrase can recreate every account the wallet ever derived, across every chain it supports, which is why the phrase deserves more protection than any single key.
Second, the tree can be shared partly. An extended public key (xpub) lets watch-only software see all your addresses without spending ability. BIP-32 warns that an xpub combined with any one non-hardened child private key is equivalent to the parent private key, so treat xpubs as sensitive, not public.
Different wallets may use different paths for the same chain. MetaMask's hardware-wallet guide, for example, tells Ledger users to look for accounts on both the "Ledger Live" and "Legacy" paths. If you restore a phrase and see an empty wallet, check the wallet's documentation on derivation paths before you panic.
Custodial vs non-custodial wallets
The real question behind "which wallet?" is who holds the keys.
Custodial. An exchange or app holds the keys for you. You log in with a username, password and usually two-factor authentication. ethereum.org notes that a centralised exchange gives you a username and password "that you can recover in a traditional way", and that you are trusting it with custody. If the company freezes withdrawals, is hacked or goes under, your access depends on it.
Self-custody (non-custodial). You hold the keys, typically through a seed phrase. MetaMask describes itself this way ("you control your own funds and access") and states plainly that it "cannot recover or control your funds if you lose your SRP or password." Nobody can freeze your wallet, and nobody can rescue it either.
Neither is automatically safer. Custody moves the risk to a company; self-custody moves it to you. Plenty of people use both: an exchange account to buy, and a self-custody wallet to hold.
Types of crypto wallets: hot, cold, hardware, software
These labels describe where the keys live.
- Hot wallet. Keys stored on a device that is connected to the internet: a browser extension, a mobile app, desktop software. Convenient, and more exposed to malware and phishing.
- Cold wallet. Keys generated and stored offline. A hardware wallet is the common form.
- Hardware wallet. In Trezor's description, "an electronic device that stores the private key to your cryptocurrency wallet". The key stays on the device; your computer sends it a transaction to approve, and the device returns a signature. Its screen is a second place to check what you are signing: Trezor says malware can change what your computer shows, "but it cannot change what your Trezor shows you."
- Software wallet. Any app that keeps keys on a general-purpose phone or computer. Almost all software wallets are hot.
- Paper wallet. A key or address printed on paper. The Bitcoin Wiki calls this "an obsolete and unsafe method of storing bitcoin" that "should not be used": it encourages address reuse, confuses people about change, and printers can keep copies. Writing down a seed phrase is a backup of an HD wallet, which is a different thing.
Table: The main wallet types compared
| Type | Keys held by | Good for | Main risks |
|---|---|---|---|
| Exchange account | The company | Buying, selling, small balances | Company failure, frozen withdrawals, account takeover |
| Browser or mobile wallet (hot) | You, on an online device | Everyday use and apps | Phishing, malicious approvals, malware, lost backup |
| Hardware wallet (cold) | You, on a device that connects only to sign | Long-term holdings | Lost backup, tampered device, approving a bad request |
| Paper wallet | You | Not recommended | Address reuse, printer copies, damage |
Can a crypto wallet be hacked?
Keys can be stolen, for example by malware on the device that holds them or by someone who finds a written backup. But many self-custody losses need no hacking at all. The person holding the keys is persuaded to use them: typing a seed phrase into a fake "sync" page, signing a token approval on a cloned site, or pasting an address that malware swapped.
A hardware wallet protects keys from malware. It does not decide whether a request is a good idea. The revoke.cash FAQ says it directly: "Hardware wallets offer no extra protection against approval exploits." If you approve a malicious contract to spend your tokens, the device will sign that approval as faithfully as it signs everything else.
The tricks follow patterns you can learn. How to spot a wallet drainer walks through the common ones and how to undo what can be undone.
What to do first
If you are setting up your first self-custody wallet, four things matter most:
- Get the wallet from the official source. Follow the link on the wallet's own site to the app or extension store. Buy hardware only from the maker or an authorised reseller, and do not use a device that arrives with a recovery phrase or PIN already set.
- Write the seed phrase down offline and test it. In order, spelled correctly, with no photos, screenshots, cloud notes or email. Restore it, or use the wallet's backup check, with a small amount before moving anything that matters.
- Decide what the wallet is for. A wallet that holds savings and never connects to new sites is much harder to drain than one used for every airdrop and mint.
- Learn the difference between a signature and a transaction before a pop-up asks you to choose.
The other habits, grouped by setup, backups, approvals and recovery, are in the crypto wallet security checklist.
FAQ
Do I need a wallet if I buy crypto on an exchange?
Not to buy or sell there: the exchange holds keys for you. You need a self-custody wallet if you want to hold the keys yourself or use onchain apps directly.
What happens if I lose my phone?
With a self-custody wallet, the phone is replaceable and the seed phrase is not. Install the wallet on a new device and restore from the phrase. Without the phrase, the wallet provider cannot restore access for you.
Is MetaMask a hot or cold wallet?
On its own, MetaMask is a hot wallet: its keys sit on an internet-connected device. It can also be connected to a Ledger or Trezor, in which case MetaMask says you need the device to sign transactions or messages for those accounts, and their keys stay on the hardware.
Sources
- Ethereum wallets: Buy, Store and Send crypto (ethereum.org) (opens in a new tab) — wallets as a window to funds rather than custodians; exchange accounts recoverable in a traditional way; exchange custody.
- Ethereum accounts (ethereum.org) (opens in a new tab) — account vs wallet; address = last 20 bytes of the Keccak-256 hash of the public key; 64-hex-character private keys.
- Invoice address (Bitcoin Wiki) (opens in a new tab) — addresses do not carry balances; address prefixes.
- Technical background of version 1 Bitcoin addresses (Bitcoin Wiki) (opens in a new tab) — P2PKH derivation steps: SHA-256, RIPEMD-160, version byte, checksum, Base58Check.
- ERC-55: Mixed-case checksum address encoding (opens in a new tab) — Ethereum address checksum and the 0.0247% mistype pass rate.
- Account structure (Solana documentation) (opens in a new tab) — 32-byte addresses, Ed25519 public keys or PDAs, displayed as base58.
- BIP-32: Hierarchical Deterministic Wallets (opens in a new tab) — HD key tree, master key from seed, xpub warning.
- BIP-39: Mnemonic code for generating deterministic keys (opens in a new tab) — seed phrases and seed derivation.
- BIP-44: Multi-Account Hierarchy for Deterministic Wallets (opens in a new tab) — derivation path structure.
- SLIP-44: Registered coin types for BIP-0044 (opens in a new tab) — coin types 0, 60 and 501.
- What is a self-custodial wallet? (MetaMask Help Center) (opens in a new tab) — self-custody definition; MetaMask cannot recover funds.
- How to connect a Trezor, Ledger, or other hardware wallet to MetaMask (MetaMask Help Center) (opens in a new tab) — the device is needed to sign; Ledger Live and Legacy derivation paths.
- Trezor's Trusted Display: Verify every address on your device (Trezor) (opens in a new tab) — malware cannot change what the device screen shows.
- Trezor hardware wallets and their advantages (Trezor) (opens in a new tab) — hot, cold and hardware wallet definitions; coins held on the blockchain.
- Paper wallet (Bitcoin Wiki) (opens in a new tab) — paper wallets described as obsolete and unsafe.
- Where to buy a genuine Trezor hardware wallet (Trezor Support) (opens in a new tab) — buy from the official store or authorised resellers.
- What is a Seed Phrase (Secret Recovery Phrase)? (Ledger Academy, updated Jun 19 2026) (opens in a new tab) — do not use a device with a pre-completed recovery phrase or PIN; offline storage.
- FAQ (revoke.cash) (opens in a new tab) — hardware wallets offer no extra protection against approval exploits.