Private Keys & Seed Phrases

Beginner10 min readLesson 17 of 166

Every wallet you have ever seen — MetaMask, Phantom, a Ledger, Coinbase — is just a friendly skin over two numbers: a private key and the public key it generates. Lose control of the private key and you lose your coins; protect it and no government, exchange, or hacker can move them without you. This lesson strips away the buzzwords and shows you exactly what keys and seed phrases are, how the math chains them together, and the security habits that separate traders who keep their stack from those who write painful lessons on Reddit.

What a private key actually is

A private key is, at its core, an astronomically large random number. On Bitcoin and Ethereum it is a 256-bit integer — a value between 1 and roughly 1.158 x 10^77. To put that in perspective, the number of atoms in the observable universe is estimated at about 10^80, so the keyspace is within a few orders of magnitude of counting every atom in existence. This is the entire security model: not a password you can guess, but a number so large that brute-forcing it is computationally impossible with current or foreseeable hardware.

Ownership of crypto is nothing more than knowledge of this number. There is no central database that says 'this Bitcoin belongs to Alice.' Instead, the blockchain records that a certain balance is locked to a public address, and only someone who can produce a valid digital signature — which requires the private key — can authorize spending from it. The phrase you will hear endlessly, 'not your keys, not your coins,' is the literal truth: if an exchange holds the key, the exchange owns the coins and you merely hold an IOU.

Private keys are usually displayed in one of several encodings rather than as a raw decimal. Bitcoin commonly uses Wallet Import Format (WIF), which looks like a string starting with 'K', 'L', or '5'. Ethereum and Solana typically show a 64-character hexadecimal string (Solana keys are 64 bytes covering both halves of an Ed25519 keypair). These are just different ways of writing the same underlying secret — the encoding is cosmetic, the entropy is what matters.

Entropy is everything

A private key is only as strong as the randomness used to create it. The 2018 'brain wallet' disasters and the Android SecureRandom bug of 2013 both drained funds because keys were generated from weak or predictable entropy. Always let a reputable wallet generate keys for you — never invent one from a phrase, a dice roll you eyeball, or anything 'memorable.'

From private key to public key to address

Public-key cryptography uses a one-way mathematical relationship. From your private key, the wallet derives a public key using elliptic curve multiplication — Bitcoin and Ethereum use the secp256k1 curve, Solana uses Ed25519. The crucial property is asymmetry: deriving the public key from the private key is trivial and instantaneous, but reversing the process — recovering the private key from the public key — is believed to be computationally infeasible. This is the elliptic curve discrete logarithm problem, and no efficient classical algorithm exists to solve it.

The public key is then hashed to produce your address — the thing you share to receive funds. On Bitcoin, the public key passes through SHA-256 and then RIPEMD-160 to produce a shorter hash, which is encoded as the familiar address (legacy '1...', SegWit 'bc1...'). On Ethereum, the address is the last 20 bytes of the Keccak-256 hash of the public key, prefixed with '0x'. The hashing step adds a layer of protection: even if someone has your address, they cannot reverse it to the public key until you spend, and they still cannot reach the private key from there.

Derivation chain: secret to shareable
Private key
256-bit secret
Public key
EC multiply
Hash
SHA-256/Keccak
Address
share freely

This directionality is what makes self-custody safe to use in public. You can paste your Ethereum address into a thousand chats, print it on a t-shirt, or post it on X to receive tips, and nobody gains the ability to spend your funds. The private key stays hidden and is used only to sign transactions locally on your device. Understanding which value is which is the single most important conceptual hurdle in this lesson: the address is public by design, the private key is secret forever.

ValueVisibilityPurposeExample form
Private keySecret — never shareSign transactions, prove ownershipWIF / 64-char hex
Public keySemi-publicVerify signaturesCompressed hex
AddressFully publicReceive fundsbc1... / 0x... / Base58
Seed phraseMost secret of allRegenerate all keys12-24 words

Why seed phrases exist

Managing a single raw private key is error-prone, and modern traders hold dozens of addresses across multiple chains. The solution, standardized in 2013 as Bitcoin Improvement Proposal 39 (BIP-39), is the mnemonic seed phrase: a sequence of 12, 18, or 24 ordinary English words that encodes the master entropy from which an entire tree of private keys can be deterministically regenerated. This is why these are called Hierarchical Deterministic (HD) wallets, defined by BIP-32 and the multi-account structure of BIP-44.

The mechanism is elegant. The wallet generates 128 to 256 bits of entropy, appends a checksum, and slices the result into 11-bit chunks. Each chunk maps to a word in a fixed list of exactly 2,048 words (2^11 = 2048). A 12-word phrase therefore encodes 128 bits of entropy plus a 4-bit checksum; a 24-word phrase encodes 256 bits plus an 8-bit checksum. The phrase is then stretched through the PBKDF2 function (2,048 rounds of HMAC-SHA512) to produce the 512-bit master seed, which seeds the BIP-32 derivation tree.

  • 12 words = 128 bits of entropy — already beyond brute-force, used by most hot wallets
  • 24 words = 256 bits of entropy — the standard for hardware wallets and cold storage
  • The word list is standardized, so a BIP-39 phrase from one wallet restores in another compatible wallet
  • Word order matters — the phrase is a sequence, not a set; rearranging it produces different (or invalid) keys
  • An optional 25th word, a user-chosen passphrase, creates a hidden wallet on top of the same 24 words
Why words instead of hex

Humans transcribe words far more reliably than 64 random hex characters. The BIP-39 list was deliberately chosen so the first four letters of each word are unique, and no two words are easily confused. This dramatically reduces backup errors — a misread character in a raw key means lost funds, but the checksum in a seed phrase catches most transcription mistakes.

From a single seed, the wallet derives a near-infinite hierarchy of keys using derivation paths such as m/44'/0'/0'/0/0 for the first Bitcoin account or m/44'/60'/0'/0/0 for the first Ethereum account. The numbers encode purpose, coin type, account, change, and index. This is how one 12-word backup can restore your BTC, your ETH, and dozens of derived addresses on a brand-new device — every key is reproducible from the seed, so the seed is the only thing you truly need to back up.

Hot wallets vs cold wallets

Where your private key lives determines your risk profile. A hot wallet keeps the key on an internet-connected device — a browser extension like MetaMask or Phantom, or a mobile app. It is convenient for active trading, DeFi, and minting, but the key touches software that is, in principle, reachable by malware, malicious browser extensions, or a poisoned transaction. A cold wallet keeps the key on a device that never exposes it to the internet — a hardware wallet like a Ledger or Trezor, or even a paper backup. Signing happens inside the secure element, and only the signed transaction leaves the device.

Hot wallet vs cold wallet
Hot wallet
  • Key on internet-connected device
  • Instant access for trading and DeFi
  • Exposed to malware and phishing
  • Good for small, active balances
  • MetaMask, Phantom, mobile apps
Cold wallet
  • Key isolated in offline hardware
  • Signs transactions in a secure element
  • Resistant to remote attacks
  • Best for long-term holdings
  • Ledger, Trezor, air-gapped setups

The practical strategy most experienced traders adopt is tiered. Keep a small 'spending' balance in a hot wallet for gas, swaps, and opportunistic trades, and keep the bulk of your portfolio in cold storage where you only sign when rebalancing. Hardware wallets do not eliminate the seed phrase — they generate and store one internally — but they ensure the key material never appears on a compromised computer. Even when you connect a Ledger to MetaMask, MetaMask only sees the public address and forwards transactions to the device for signing.

Custodial accounts on exchanges like Binance or Coinbase are a third category: you have no key at all, only login credentials to a company that holds the key. This is operationally easy and necessary for active fiat on-ramping and high-frequency trading, but it reintroduces counterparty risk. The November 2022 collapse of FTX is the textbook cautionary tale — customers who left funds on the exchange discovered the keys, and the coins behind them, were gone. Self-custody exists precisely to remove that single point of failure.

The mistakes that drain wallets

Never type your seed phrase into any website, pop-up, or app that asks for it — a legitimate wallet only asks for the seed during initial restore on your own device, never to 'verify,' 'sync,' or 'claim an airdrop.' Never store the phrase as a photo, in cloud notes, in email, or in a password manager that syncs online. Never buy a 'pre-configured' hardware wallet with a seed already printed inside — those are scams that share the key with the attacker. If anyone, ever, sees your 12 or 24 words, assume the funds are already gone and move them immediately to a fresh wallet.

Signing a transaction: how the key is used

When you swap SOL on Jupiter or send ETH to a friend, your wallet constructs the transaction, then uses your private key to produce a digital signature over the transaction data. The signature mathematically proves two things at once: that the transaction was authorized by the holder of the private key, and that the transaction data has not been altered since signing. Network validators verify the signature against your public key — without ever learning the private key — and only then include the transaction in a block.

  1. 1The wallet builds the transaction: recipient, amount, gas/fee, and a nonce to prevent replay
  2. 2Your private key signs a hash of that transaction data, producing an ECDSA (or Ed25519) signature
  3. 3The signed transaction is broadcast to the network's mempool
  4. 4Validators or miners verify the signature against your public key and check the balance
  5. 5The transaction is included in a block and becomes irreversible after enough confirmations

This is why blockchain transactions are irreversible and why there is no 'forgot password' button. There is no administrator who can reverse a mistaken transfer or restore access to a lost key, because no one else has the key. The flip side of total control is total responsibility. A trader who understands signing also understands the danger of blind-signing: approving a transaction without reading what it does. Malicious DeFi contracts trick users into signing an unlimited token 'approval' that lets the attacker drain a token later — the signature was valid, the user just authorized the wrong thing.

Trader habit: read before you sign

On a hardware wallet, the transaction details are displayed on the device's own screen, which malware on your PC cannot fake. Always confirm the destination address and amount on the device, not just in the browser. For token approvals, prefer setting a specific spend limit over 'unlimited,' and periodically revoke stale approvals using a tool like revoke.cash.

Backing up and recovering your seed

Because the seed phrase regenerates every key, backing it up correctly is the most important operational task in self-custody. The goal is to survive two failure modes simultaneously: loss (fire, flood, hardware failure, forgetting) and theft (someone finding your backup). These pull in opposite directions — more copies reduce loss risk but increase theft risk — so the craft is in balancing them. The phrase should be recorded offline, ideally stamped into a fireproof metal plate rather than written on paper, and stored where only you can retrieve it.

Backup methodLoss resistanceTheft resistanceNotes
Paper in a drawerLowLowBurns, fades, gets thrown out
Metal seed plateHighMediumSurvives fire and flood
Cloud note / photoMediumVery lowNever do this — remote attackers
Split / multisigHighHighAdvanced; no single point of failure

Recovery is the reverse of setup: install a compatible BIP-39 wallet on a new device, choose 'restore from seed,' and enter the words in exact order. The wallet re-derives every key and your balances reappear because the coins were never stored in the old device — they live on the blockchain, and the device only held the keys. This is the moment many beginners finally understand that a wallet does not 'contain' coins; it contains the keys that control coins recorded on the public ledger.

For larger holdings, traders graduate to setups with no single point of failure. A multisignature wallet (such as Safe on Ethereum) requires M-of-N keys to approve a transaction — for example, 2 of 3 hardware wallets — so losing one key is not catastrophic and no single stolen device drains the funds. Shamir's Secret Sharing (used by Trezor's SLIP-39) splits a seed into shares where a threshold is needed to reconstruct it. These are worth learning once your portfolio is large enough that a single seed backup feels like too much concentration risk.

Putting it together for a trader

Key management is not abstract security theater; it directly shapes how you trade. The chart below is a stylized look at why the discipline matters: a portfolio can ride a strong uptrend and still go to zero in a single block if a seed leaks. No stop-loss protects against a compromised key. The 'risk management' that matters most in crypto begins before any trade — with where your keys live and who can reach them.

SupportStopHexaTrades
A portfolio's value means nothing if the keys controlling it are exposed — custody risk sits below every price level

A sensible operating model for an active trader looks like this: a custodial exchange account for fiat on-ramp and high-frequency trading, funded only with what you are willing to expose to counterparty risk; a hot wallet for DeFi, mints, and short-term positions, holding modest balances; and a hardware wallet in cold storage for the core long-term portfolio, with its 24-word seed stamped in metal and stored securely offline. Move funds up and down this ladder deliberately, never store the seed digitally, and treat every unexpected request to enter your seed as an attack.

Finally, internalize the asymmetry that defines this entire space. Self-custody hands you the same power a bank's vault gives an institution, with none of the bureaucracy — and none of the safety net. The 2022 collapses of Terra/UST and FTX wiped out users who trusted intermediaries; meanwhile, anyone who held their BTC in a hardware wallet through the 2024 halving and the spot ETF approvals never had to wonder whether their coins were really there. The keys were theirs. Learn to manage them well, and you have learned the most important skill in crypto.

A trader's custody ladder
Cold storage (hardware)
core long-term holdings
Hot wallet
DeFi, mints, short-term
Custodial exchange
fiat on-ramp, active trading

Key takeaways

  • Private key = secret 256-bit number = total control. Never share it. Not your keys, not your coins.
  • Derivation is one-way: private key -> public key -> hashed address. The address is safe to share publicly.
  • A BIP-39 seed phrase (12 or 24 words) regenerates all your keys; back it up offline, ideally in metal, never digitally.
  • Hot wallet = convenient but online and exposed; cold/hardware wallet = offline key, best for core holdings.
  • No website or app ever needs your seed except a genuine restore on your own device. Any other request is a scam.
  • Signing proves authorization and integrity; transactions are irreversible, so always read details before you sign.

Practical exercises

  1. 1Install a reputable hot wallet (e.g. MetaMask or Phantom) on a spare device, generate a NEW wallet, and write down the seed phrase on paper. Do not fund it. Practice deleting and restoring the wallet from your seed to prove you understand recovery.
  2. 2Take one of your public addresses and paste it into a block explorer (Etherscan, Solscan, or mempool.space). Confirm you can see balances and history with only the address — proving the address reveals nothing that lets anyone spend.
  3. 3Send a tiny test amount (a few dollars of ETH or SOL) between two of your own wallets. On the sending step, identify the recipient, amount, fee, and nonce before signing, and watch the transaction confirm on a block explorer.
  4. 4Audit your current backups: confirm your seed is NOT stored as a photo, cloud note, email, or synced password manager. If it is, generate a fresh wallet, move funds, and record the new seed offline on paper or metal.

Test your knowledge

1. What does a private key fundamentally represent?

2. How many words and how many bits of entropy does a standard 24-word BIP-39 seed phrase encode?

3. Which value is safe to share publicly?

4. What is the main advantage of a cold (hardware) wallet over a hot wallet?

5. Someone messages you a link to 'verify your wallet' by entering your 12 words. What should you do?

Frequently asked questions

No, as long as you have your seed phrase. The coins live on the blockchain, not in the device. Install a compatible BIP-39 wallet on a new device, restore from your seed in exact word order, and every key and balance reappears.

Ready to apply this with real-time signals and a 40,000+ trader community?