Public Key
Last Updated: November 19, 2026
A public key is a cryptographic key that can be shared publicly to receive transactions, verify digital signatures, and establish secure communications in a blockchain network.
How Public Keys Work
In asymmetric cryptography, a public key is paired with a private key. The public key allows anyone to send transactions to its associated address, while the private key is used to sign transactions and prove ownership. Public keys are integral to blockchain addresses, ensuring secure, transparent, and trustless interactions between users.
On Bitcoin and Ethereum, the wallet makes the public key from the private key with math on an elliptic curve called secp256k1. The math only works one way, so the public key can be shared safely. When you sign a transaction, nodes use your public key to check the signature without ever seeing the private key.
Public Key vs Wallet Address
An address is not always the public key itself. Most address formats use a shorter hash of it:
| Network and address type | What the address contains |
|---|---|
| Bitcoin legacy (1…) and single-key SegWit (bc1q…) | A 20-byte hash of the public key |
| Bitcoin Taproot (bc1p…) | The public key itself, in tweaked form |
| Ethereum and other EVM chains (0x…) | The last 20 bytes of the Keccak-256 hash of the public key |
| Solana | The public key itself, written in base58 |
With hashed addresses, the public key only appears on the blockchain when coins are spent, because the spending transaction must reveal it. Reusing an address leaves any remaining coins at a key that is already public.
Example: Visible Public Keys and the Quantum Debate
Public keys are at the heart of the quantum computing debate. In theory, a large enough quantum computer could work back from a public key to its private key. Project Eleven said on April 24, 2026, that roughly 6.9 million BTC sit in wallets whose public keys are visible on-chain.
The same day, it awarded a 1 BTC prize for breaking a 15-bit elliptic curve key on a publicly accessible quantum computer. That is far short of the 256-bit keys Bitcoin uses. Our explainer on whether quantum computers can break Bitcoin covers the timelines and the proposed fixes.
Where to See a Public Key
A block explorer shows public keys in the input data of transactions that spend from hashed addresses, and inside Taproot outputs. Wallets can also export an extended public key, or xpub, defined in BIP-32, which generates every receiving address in a wallet. An xpub cannot spend funds, but anyone who sees it can follow the wallet’s full balance and history.
Why Public Keys Are Important
Public keys are crucial for security on blockchain networks. They enable users to interact with the blockchain without exposing their private keys, protecting against unauthorized access and ensuring the integrity of digital transactions. Multi-signature wallets build on the same idea: they list several public keys and require a set number of matching signatures.
The main costs are privacy and future risk. Every transaction tied to the same key or xpub can be linked together, and keys that are already public would be the first exposed if quantum attacks become practical.
Compressed and Uncompressed Public Keys
A Bitcoin or Ethereum public key is a point on the secp256k1 curve, made of two numbers called x and y. Written in full, it takes 65 bytes. Because y can be worked out from x, a shorter form exists. It keeps x and a single byte that says which of the two possible y values is meant.
That compressed form takes 33 bytes and starts with 02 or 03. The full form starts with 04. Bitcoin wallets have used compressed keys by default since 2012, which made transactions smaller and cheaper. Ethereum addresses are built from the full key, without the 04 prefix.
Public Keys After Taproot
Bitcoin’s Taproot upgrade went live on November 14, 2021, at block 709,632. It added Schnorr signatures, defined in BIP-340, which use a 32-byte public key that holds only the x value. Shorter keys save space, and Schnorr lets several keys combine into one, which can make a multi-party payment look like a normal one. See our entry on digital signatures for how signing works.
Every format still follows the same rule. The private key stays secret, and the public key can be shared.
Frequently Asked Questions
Is it safe to share my public key?
Yes, in the sense that nobody can use it to move your funds with today’s computers. A public key, or an address made from it, is meant to be shared so people can pay you and check your signatures. Sharing does cost privacy, because anyone can link the transactions tied to that key, and an xpub reveals a whole wallet’s history.
What is the difference between a public key and a wallet address?
A public key is made from the private key, and an address is usually made from the public key. Bitcoin legacy, SegWit and Ethereum addresses are shortened hashes of the public key, while Bitcoin Taproot and Solana addresses contain the key itself. In practice, you share the address to receive funds, and the public key appears when you spend.
Can quantum computers steal crypto from a public key?
Not today. Breaking a 256-bit elliptic curve key would need a far larger quantum computer than any that exists, and the April 2026 attack that won Project Eleven’s 1 BTC prize broke a 15-bit key. Researchers still warn that coins with visible public keys, about 6.9 million BTC by Project Eleven’s estimate, would be exposed first if such machines arrive.
How long is a public key?
It depends on the format. On Bitcoin and Ethereum, a full public key is 65 bytes, a compressed key is 33 bytes, and a Taproot key is 32 bytes. Solana public keys are also 32 bytes. Addresses are usually shorter or encoded differently, because they are often a hash of the key written in a format that is easier to copy.
Data sources: BIP-32 and BIP-340 specifications (bitcoin/bips on GitHub); Project Eleven Q-Day Prize announcement (April 24, 2026).