Bitcoin.com

What Are Private Keys?

A private key is the secret number that controls your crypto. Learn how private keys relate to seed phrases and addresses, and what is safe to share.

Last Updated
Published
Reading Time5 min read
Written By
Neil Author
Neill Velardo
Crypto content specialist since 2017; reviews iGaming platforms firsthand
Reviewed By
Graham Stone Author Image
Graham Stone
Journalism graduate covering Bitcoin and crypto since 2017
What are Private Keys?

Frequently Asked Questions

Is a seed phrase the same as a private key?
No. A seed phrase sits above your private keys in the wallet’s structure. Under BIP-39 and BIP-32, the phrase generates a master seed, and the master seed generates an entire tree of private keys. Anyone holding the phrase controls every key in that tree, while a single private key controls only the funds locked to its own public key. In practical terms, someone with your phrase has the same power as someone with all your keys at once.
Can two people have the same private key?
In theory it is possible, in practice it will not happen. There are approximately 1.16 × 10^77 valid private keys. Wallets draw from cryptographically secure randomness, and the probability of two independently generated keys colliding is smaller by many orders of magnitude than the probability of every other risk you face combined. Collisions have never been observed and are not a concern worth planning around.
Can someone work out my private key from my public key or my address?
No practical method exists. Deriving a public key from a private key is a fast elliptic curve multiplication, and reversing it means solving the elliptic curve discrete logarithm problem, which has resisted decades of academic and commercial attack. Addresses add a further layer of hashing on top. Quantum computers are the only theoretical route, and no machine remotely capable of this exists today.
How long is a Bitcoin private key?
256 bits, which is 32 bytes. Displayed as raw hexadecimal it is 64 characters. In wallet import format it is 51 characters starting with 5, or 52 characters starting with K or L for the compressed variant. As a BIP-39 recovery phrase, the equivalent security is expressed as 12 words for 128 bits of entropy or 24 words for 256 bits.
Does the order of my seed phrase words matter?
Yes, completely. Each word position maps to a specific group of eleven bits. Reordering the words produces different bits, which produces a different seed and a different wallet. The final word also carries a checksum, so a reordered phrase will usually be rejected outright rather than quietly opening an empty wallet.
Where is my private key stored?
In a self-custodial wallet, your keys are derived on demand from the seed on your own device, and the seed is held in the device’s secure storage. On a hardware wallet the key material stays inside a secure element and never leaves it, with the device signing transactions internally. In a custodial account, the platform holds the keys and you hold a login instead. The keys are never stored on the blockchain, which records only transactions and the addresses involved.
Is it safe to share my xpub?
Treat it as private. An xpub cannot spend anything, so sharing it will not get your funds stolen directly. It does let the recipient derive and monitor every address in that branch of your wallet, giving them your full balance and transaction history on an ongoing basis. Share it only with software or people you have chosen to trust with that visibility, and never in response to an unsolicited request.
Is a transaction ID sensitive?
No. A transaction ID identifies one transaction on the blockchain and confers no control over any wallet. Sharing one to prove a payment or to check a confirmation is routine. It does allow anyone to look up the addresses and amounts in that transaction, so the only consideration is privacy.
Are private key finder or recovery tools ever real?
Tools claiming to find or brute-force a lost private key do not work, because searching a 256-bit key space is computationally impossible. Products advertising this capability are typically malware or advance fee fraud. Legitimate technical recovery exists for narrow problems, such as extracting data from damaged hardware or completing a phrase with one or two missing words, and those services never ask for a full recovery phrase.
What happens if I lose my private key but still have my recovery phrase?
Nothing is lost. The phrase regenerates every private key your wallet has ever derived, so restoring it in any compatible wallet restores access. This only works in the reverse direction: a private key cannot regenerate the phrase or reach any other key in the wallet.

Start investing safely with the Bitcoin.com Wallet

Over 85M+ wallets created so far. Everything you need to buy, sell, trade, and invest your Bitcoin and cryptocurrency securely.

A screenshot of the Bitcoin.com Wallet app

Scan to Download the Bitcoin.com Wallet

Scan this QR code with your mobile device, you will be automatically redirected to the correct store page.