Public key vs private key: one signs, everyone checks
A private key is a secret number that signs your payments. The public key is calculated from it and lets everyone check the signature without learning the secret. The calculation only runs one way, so the public key can be shown to the world and the private key never.
Anna owns two things that belong together. A key she never shows anyone, and a pattern pinned to the board in the village square. The pattern was made from the key, and anyone may look at it.
When Anna writes "10 coins to Rosa" in the notebook, she marks the line with her key. Every house holds the mark up against the pattern on the board. It fits, so the line goes in. Ben has studied the pattern for weeks, hoping to cut a copy of the key from it. He can't. The pattern was made from the key, and the process doesn't run backwards.
That's the whole difference. The private key is the secret that signs. The public key is the pattern everyone checks against. Show the second to the world. Show the first to anyone, and it's theirs.
What it is
A private key is a very large number, chosen at random. The Bitcoin developer guide puts it in one line: "secp256k1 private keys are 256 bits of random data." The public key is calculated from it, and "because the transformation can be reliably repeated later, the public key does not need to be stored" (Bitcoin developer guide).
The rule is older than Bitcoin. The US standards body NIST, in its Digital Signature Standard, says signing "uses a private key" and checking uses "a public key that corresponds to but is not the same as the private key". And: "Public keys may be known by the public; private keys must be kept secret" (NIST FIPS 186-5, 2023).
How it works: the key that is the number 1
Bitcoin uses a curve called secp256k1, defined in a standard called SEC 2. Here is what that means with a real, public example.
- The range. A private key can be any whole number from 1 up to a limit printed in SEC 2, a number 78 digits long, about 1.158 × 10^77 (SEC 2, 2010). Your wallet picks one at random.
- The one-way step. The wallet multiplies a fixed starting point on the curve, called G, by your number. The result is your public key. Multiplying is fast. Going back, from the result to the number, is the part nobody knows how to do with ordinary computers.
- The silly choice. Take the private key 1. Multiplying G by 1 gives G itself, so the public key is printed in the standard for everyone to read: it starts 0279BE667E. We checked it with our own calculation, and turned it into a classic Bitcoin address: 1BgGZ9tcN4rm9KBzDn7KprQz87SZ26SAMH.
- The traffic. By 19 November 2026, that address had received 101 payments, 25,034,358 satoshis in total, about 0.25 bitcoin. Every one of them had been spent again (mempool.space). At CoinGecko's price on 18 November 2026, 0.25 bitcoin was worth about €14,265 (CoinGecko).
Nobody broke the maths. Whoever moved those coins only had to guess the number 1. A secret anyone can guess is not a secret.
That's the point of the big range. The security doesn't come from a clever lock. It comes from the wallet picking one number out of 78 digits' worth of choices, at random, and never telling anyone which.
Why it matters
The pair solves a problem the village used to need a notebook keeper for: proving who you are. Nobody checks your passport when you sign a payment. Every node checks your signature against your public key, and either it fits or it doesn't.
That's the gain. You can publish your public key and your addresses, and receive money from strangers, without giving them any power over your coins.
The cost is the other half. There is no keeper any more. If the private key leaks, the thief's signature fits just as well as yours, and the network can't tell you apart. If it's lost, nobody can calculate it again from the public side. That's why the rest of this section is about one thing: how not to lose, and not to show, the secret.
Where people get it wrong
- "My public key is my address." Close relatives, not twins. A Bitcoin address is usually made from a fingerprint of the public key. Our article on Bitcoin addresses explains the formats.
- "Showing my public key is risky." The standard says public keys may be known by the public. The one open question is a future quantum computer, covered in our article on whether quantum computers will kill Bitcoin.
- "A private key is like a password." A password can be reset by whoever runs the service. A private key has no service behind it. Nobody can reset it, and nobody can turn it off.
- "Any number will do." Only a truly random one. The key 1 is a valid private key, and that is exactly why its coins never stay.
- "I have one private key." A modern wallet has thousands, all grown from one seed. That's the next article.
The one-way rule
Open your wallet and look for anything labelled private key, export key, or recovery words. That side of the pair never leaves the wallet: not into a website, not into a chat, not into a "support" form, and not in front of a camera. Your receiving address is the other side. Share it freely.
If a stranger at the gate asks for the first kind, he isn't checking your signature. He's planning to make it. Ben is still in the square, staring at the pattern on the board. Good luck, Ben.
Frequently asked questions
What is the difference between a public key and a private key?
The private key is a secret random number that signs transactions. The public key is calculated from it and lets anyone check those signatures. You can share the public key safely, but whoever has the private key controls the coins.
Can someone work out my private key from my public key?
Not with any known method on ordinary computers. The calculation from private to public key is fast, while the reverse is the hard problem that Bitcoin's signatures rely on. A large enough quantum computer would be a different matter, and none had been shown publicly by November 2026.
Is a Bitcoin address the same as a public key?
No. Most Bitcoin addresses are made from a fingerprint, or hash, of the public key, plus a checksum against typos. The address is what you share to receive coins.
How big is a Bitcoin private key?
It is a 256-bit number. Under the SEC 2 standard for Bitcoin's curve, secp256k1, a valid key is any whole number from 1 to just below a limit that is about 1.158 × 10^77, a number with 78 digits.
What happens if someone gets my private key?
They can sign transactions exactly as you can, and the network has no way to tell you apart. Nobody can reverse a valid transaction, so the only real protection is never showing the private key or the recovery words that create it.
Sources
- Bitcoin developer guide, Transactions (public key formats)
- NIST, FIPS 186-5 Digital Signature Standard (3 February 2023)
- Standards for Efficient Cryptography Group, SEC 2: Recommended elliptic curve domain parameters, version 2.0 (27 January 2010)
- mempool.space API, address 1BgGZ9tcN4rm9KBzDn7KprQz87SZ26SAMH (read 19 November 2026)
- CoinGecko, Bitcoin price (18 November 2026)

