Skip to content
Veiledkey

Bitcoin, quantum computers and the public key

Headlines say a third of all bitcoin is “quantum vulnerable”. This guide explains what that phrase measures, what it leaves out, and how to tell which side of the line your own coins are on. Figures and quotations link to their sources.

Why a hash protects a key

Every bitcoin is locked to a script. For most addresses that script contains a hash of a public key, not the key itself. The Bitcoin developer guide describes the design as keeping public keys “hidden (hashed) until the first time satoshis sent to those addresses are spent.”

Shor’s algorithm attacks the mathematical link between a public key and its private key. A hash has no such structure to exploit, so a coin whose key has never been published is out of that algorithm’s reach.

What the chain stores for an unspent address: a 20-byte hash

What a spend publishes: the 33-byte key

Why address reuse is the main cause

To spend, you must show the public key so the network can check your signature. From then on that key is in the blockchain permanently. If the address still holds coins afterwards, or receives more later, those coins sit behind a key anyone can read.

Glassnode’s May 2026 study found 6.04 million BTC with visible keys and attributed 4.12 million of it to this “operational” cause rather than to the script type. The same study puts exchange-related balances at about 40% of that operational figure.

Why Taproot is different

Taproot addresses, the ones starting with bc1p, encode a public key directly (BIP-341). There is no hash in front of it, so the key is visible from the moment the address is shared, whether or not it has ever spent. The same is true of the very early pay-to-public-key outputs, which Google’s paper counts at a little over 1.7 million BTC.

This was a deliberate choice. BIP-341’s rationale says that putting the key in the output saves space, and argues that hiding a key behind a hash protects against quantum computers only weakly, because coins are unprotected while a spend confirms and much of the supply already has visible keys. It does mean a Taproot address is always reported as exposed here.

What a quantum computer could do today

Nothing to a Bitcoin key. NIST’s transition report, finalised in October 2026, sets dates for retiring today’s signature algorithms while acknowledging that no cryptanalytically relevant quantum computer exists yet.

What has changed is the estimate of what one would need. In March 2026 Google Quantum AI reported resource estimates for the 256-bit elliptic-curve problem: circuits that use fewer than 1,200 logical qubits and 90 million Toffoli gates, which it estimated a superconducting machine with fewer than half a million physical qubits could run in minutes. Google did not share the circuits themselves and published a zero-knowledge proof of them instead (their explanation). Other 2026 estimates assume different hardware and arrive at different figures.

Nobody can responsibly give a date. The useful point is that exposure is permanent while hardware only improves, so the question is how long a visible key will keep holding value.

At-rest and on-spend attacks

Google’s paper defines at-rest attacks as those “targeting public keys that remain exposed onchain or offchain for long periods of time” and on-spend attacks as those “targeting transactions in transit.” BIP-360 uses the names long-exposure and short-exposure for the same split.

The difference matters because an at-rest attacker has unlimited time, while an on-spend attacker has to beat the next block. The first can be avoided today with care. The second needs a change to Bitcoin itself.

What Bitcoin developers are proposing

BIP-360 proposes a new output type, pay-to-Merkle-root, with addresses starting bc1z. It works like Taproot without the key-path spend, so no public key sits on-chain at rest. It is a draft. It does not add a post-quantum signature scheme and it is not active.

BIP-361, also a draft, sketches a staged retirement of today’s signature schemes once a post-quantum one exists. NIST has standardised candidates such as ML-DSA (FIPS 204) and SLH-DSA (FIPS 205); Bitcoin has not chosen one.

What a holder can do now

Check your addresses