A public key is a number derived from a private key and used to verify signatures: with it anyone can confirm that a transfer was signed by the owner. A wallet address is derived from the public key, but going backward, from public key to private key, is impossible.
How It Works
It rests on elliptic-curve cryptography. A private key is a huge random number. The public key is obtained from it by a mathematical operation that is easy to perform one way and practically impossible to reverse. When you send coins, the wallet signs the transfer with the private key, and network nodes check the signature with the public key. That is how the network confirms the owner is acting, even though no one but the owner ever sees the secret. Bitcoin and Ethereum use the same curve, TON and some other networks use a different one, but the principle is the same.
Key and Address Are Not the Same
An address is usually made from the public key: it is hashed, shortened and given a checksum. The result is a string that is convenient to share and protected against typos. For most Bitcoin addresses the public key is not visible until coins are spent from the address: the blockchain stores only the hash. The exceptions are the earliest outputs and Taproot addresses, which record the key openly. In Ethereum, the address is the last 20 bytes of the public key's hash. So showing an address is safe, while the public key on its own is rarely needed by anyone — except in cases such as multisignature, where participants exchange keys.
Extended Public Key
Modern wallets build all addresses from one seed phrase along a tree of keys. At the top of that tree is an extended public key — xpub, ypub or zpub, depending on the format. It does not allow spending coins, but it lets anyone compute all your addresses, past and future. It is used to track a balance without access to the keys, for example on a computer with a watch-only wallet. But handing an xpub to an outsider means revealing your entire history and balance. Share it only with someone you would trust with your bank statement.
Public Keys and Quantum Computers
The scheme's security rests on the fact that the private key cannot be computed from the public one. Ordinary computers cannot do it. In theory, a powerful enough quantum computer could solve that problem, which is why coins on addresses with an exposed public key are considered more vulnerable in the distant future. As of 2026 no such machines exist, and network developers are discussing a move to quantum-resistant signatures. The practical advice is simple: do not reuse one address forever, and keep your wallet updated.
A user wants to see his bitcoin wallet's balance on a work laptop without moving the seed phrase there. He exports the zpub and creates a watch-only wallet on the laptop. It shows all 15 addresses, a notional 0.2 BTC and the history, but cannot send coins: signing requires the private key, which stayed on his phone.
Related terms
Private KeyCrypto Wallet AddressSeed PhraseCryptographyMultisignatureQuantum computers and Bitcoin
On the site
How to buy cryptoCryptocurrenciesBitcoin fees
This article was written by AI. Check specific rates, taxes and broker terms with primary sources.