When is a public key exposed?

A public key is exposed once it is visible on the chain, which usually happens the first time its address spends. Until then most addresses show only a hash of the key, which gives a key-breaking attacker nothing to start from.

Also called revealed public key, fresh address or pubkey exposure.

Explain it like I’m five

Imagine a safe whose lock has a special design. The label on the safe door is only a fingerprint of that design, and the design itself sits in a sealed envelope. A thief with a new kind of lock-picking machine can start work only once the design is in hand, and nobody can rebuild a design from its fingerprint.

To open the safe, the owner has to open the envelope and show the design to everyone, and the blockchain pins a copy to a public noticeboard for good. From then on a thief can study it at leisure, and whatever is left in the safe is protected by the lock alone.

What problem it solves

A wallet has a private key and a public key. Shor’s algorithm lets a quantum computer compute the private key from the public key, but it gives no way to compute a public key from its hash. A Bitcoin address is a hash of the key made with SHA-256 and RIPEMD-160, and an Ethereum address is the last 20 bytes of its Keccak-256 hash, so the address alone gives such a machine nothing to work on.

A key counts as exposed from the moment it becomes public, because that is the moment the attack has something to work on. The hash protects only a key that has not been shown.

How it works, step by step

  • A wallet makes a private key and the matching public key, and it publishes only the address, a hash of the public key.
  • Coins arrive. Everyone sees the address and the balance but not the key, so the key is still hidden.
  • The owner spends. A Bitcoin spend from a hashed address shows the full public key next to the signature, so nodes can hash it and compare it with the address. An Ethereum transaction carries a signature from which every node recovers the key.
  • The transaction waits in the public mempool with the key in plain view (mempool exposure), then enters a block, where the key stays for good (on-chain exposure).
  • Any coins still at that address now sit behind the curve alone. That happens when change returns to the same address, when later deposits arrive, and on Ethereum always, because an account keeps its address for life.
  • Some outputs skip the hash. Early pay-to-public-key outputs and Taproot outputs carry the key inside the output, so it is exposed the moment coins arrive.
  • Signing off-chain exposes keys too. A signature on any message lets anyone recover the key, an extended public key reveals every key below it, and a key reused on a forked chain is exposed on both.

A worked example

Alice receives 1 BTC at a fresh bc1q address. The chain shows a 20-byte hash and no key, so a quantum attacker has nothing to start from. She then pays 0.4 BTC and sends the 0.6 BTC of change to a new address. The payment reveals the first address’s key, but that address is empty. Had the change gone back to the same address, 0.6 BTC would sit behind an exposed key.

Bob holds ETH at an address that has never sent a transaction, so his key is hidden. His first transaction reveals it, and because his account keeps its address, his balance and every later deposit sit behind an exposed key from then on. Google Quantum AI estimates that a fast quantum computer could crack the 1,000 richest Ethereum accounts, about 20.5 million ETH, in under nine days.

What it guarantees

  • A key that has never been shown is out of reach of Shor’s algorithm. The attacker would have to invert a hash, which Grover’s algorithm speeds up only by a square root.
  • Exposure is permanent. The chain keeps every block, and an old transaction works as a lookup table that turns a key hash into the key.
  • Google Quantum AI distinguishes at-rest attacks, which go after keys that stay exposed for long and may take days, from on-spend attacks, which go after a key in a pending transaction and have to finish before it confirms, about 10 minutes on Bitcoin and about 12 seconds on Ethereum.
  • Every standard Bitcoin script type is open to an on-spend attack, because a spend always shows the key first. A fresh address protects only against the at-rest kind.
  • Over 1.7 million BTC, nearly 9 percent of all bitcoin, sits in pay-to-public-key outputs whose keys have been exposed since the coins arrived.
  • BIP 341, the Taproot specification, notes that a hash gives only weak protection, since transactions are not protected while they confirm.

Common misunderstandings

  • Receiving coins does not expose a key on a hashed address. Spending does, and so does signing a message.
  • A new address is safe only until it signs. Its key is in view while the spend confirms and for good afterward.
  • Ethereum has no fresh-address escape. An account’s address comes from its key, so the key cannot be rotated without abandoning the account.
  • An exposed key is a starting point for a future attacker. Nothing is lost until a machine that can run Shor’s algorithm on the curve exists, or until a mathematical shortcut is found.

Where exposure shows up

  • Bitcoin shows exposed keys in early pay-to-public-key outputs, including mining rewards from 2009 and 2010, in Taproot outputs since 2021, and in every address that has spent part of its balance.
  • Ethereum shows an exposed key for every account that has sent a transaction.
  • Project Eleven’s Risq List collects the public keys that are at risk of at-rest attacks.

History

The Bitcoin whitepaper already advised a new key pair for each transaction to keep them from being linked to a common owner. In 2017 Aggarwal and colleagues described the risk to Bitcoin’s signature scheme. In March 2026 a Google Quantum AI whitepaper with Justin Drake and Dan Boneh among its authors set out the attack types, and on 7 October 2026 Drake asked holders to move funds to addresses that have never signed, which he calls bunker mode.

In Redacted

In bunker mode your private account is 25 words of its own, never derived from a wallet key, so a broken wallet key does not open your private balance. The way home is as quantum-safe as the address it leads to, so add a rescue address that has never sent a transaction before you move.

Bunker mode →

Related terms

Sources: Securing elliptic curve cryptocurrencies against quantum vulnerabilities, Babbush et al., March 2026 · BIP 341, Taproot: SegWit version 1 spending rules · Ethereum: a secure decentralised generalised transaction ledger, Yellow Paper, Appendix F · Bitcoin: a peer-to-peer electronic cash system, Nakamoto, section 10 · Justin Drake calls for bunker mode, Forklog, October 2026

Updated November 1, 2026. All terms