Public and Private Keys Explained
Every warning about crypto security traces back to one asymmetry: deriving a public key from a private key is trivial, and reversing it is impossible.
Key points
- A private key is a randomly chosen number so large that guessing it is infeasible.
- Public keys and addresses are derived from it one-way — they cannot be reversed.
- A seed phrase is a human-readable encoding of a master key that generates all your others.
- Anyone who learns your private key or seed phrase controls your funds immediately and permanently.
What a private key is
A Bitcoin private key is a number between 1 and roughly 2²⁵⁶. That is about 10⁷⁷ — comparable to the estimated number of atoms in the observable universe. It is generated at random, and its security rests entirely on the size of that space.
To make the scale concrete: a machine testing a trillion keys per second, running since the beginning of the universe, would have covered an immeasurably small fraction of the range. Brute force is not a practical threat. Every real-world key loss comes from poor randomness, careless storage, or the owner being tricked — never from someone guessing.
The one-way chain
The public key comes from the private key by elliptic curve multiplication. Multiplying a point on the curve by a large number is fast; working out what number was used is the elliptic curve discrete logarithm problem, for which no efficient algorithm is known.
The address comes from the public key by hashing, which is also one-way. This double layer means that even if elliptic curve cryptography were broken tomorrow, addresses whose public keys have never been revealed on-chain would still have some protection.
Signing works the same way in reverse: the private key produces a signature over a transaction, and anyone with the public key can verify the signature matches — without learning anything about the key itself.
Seed phrases and derivation paths
Managing individual private keys would be unworkable, so modern wallets use a single master secret — the seed phrase, usually 12 or 24 words from a standard 2,048-word list defined in BIP-39.
Those words encode a large random number. From it, a deterministic process (BIP-32) derives a tree of child keys, so one phrase can generate millions of addresses across multiple currencies. This is why you can restore an entire wallet on new hardware with nothing but the words.
The words also carry a checksum, which is why a phrase with a typo is usually rejected rather than silently opening an empty wallet. Different wallets sometimes use different default derivation paths, which is the usual explanation when a correct seed phrase restores an apparently empty wallet — the funds are on a different branch of the same tree.
Practical consequences
Three properties follow directly from the mathematics, and they drive every piece of security advice worth following:
- Possession is control. There is no ownership record separate from the key. Anyone who obtains it can spend immediately, from anywhere, with no way to stop them.
- Loss is permanent. No recovery process exists, because no one else has a copy. An estimated 20 % of all bitcoin is in addresses that have not moved in over a decade, much of it presumed lost.
- Backups must be offline. A seed phrase in a photo, a password manager, an email draft or a cloud note is one breach away from being someone else's. Steel plates and paper in separate secure locations are the standard answer.
Nobody legitimate will ever ask for your seed phrase. Not support, not a wallet developer, not an exchange, not a “validation” website. Every single request is theft. Our wallet security guide covers storage in detail.
Frequently asked questions
Is 12 words as secure as 24?
For practical purposes yes. Twelve words provide 128 bits of entropy and 24 provide 256 — both far beyond brute force. The 24-word version offers a margin against theoretical future attacks and is standard on hardware wallets, but no one has ever lost funds because they used 12.
Can two people generate the same address?
A collision is theoretically possible and practically impossible given the size of the key space. The genuine risk is a wallet with flawed random number generation, which has happened and has cost people money. Use well-audited software and hardware that generate keys on-device.
What is a passphrase or '25th word'?
An optional extra secret combined with the seed phrase to derive a completely different wallet. It protects against someone finding your written words, and enables plausible deniability. It is also unforgiving: forget the passphrase and the funds are gone, even with the seed phrase intact.