A glowing quantum processor lattice inside a glass cube refracts Bitcoin sigils onto dark walls.

The Quantum Threat to Bitcoin's Exposed Coins

A technical analysis of how quantum computing endangers reused Bitcoin addresses, which UTXOs are exposed, and what post-quantum migration would require.

16 min read
Share X LinkedIn

cover

Introduction

The quantum threat to Bitcoin is one of the oldest open problems in the protocol’s risk surface, and one of the most misunderstood. It is routinely framed as a binary: either a sufficiently powerful quantum computer arrives and every coin is vulnerable, or it does not and the question can be deferred indefinitely. Neither framing survives contact with the cryptographic detail.

Bitcoin’s signature scheme — ECDSA over the secp256k1 curve — is theoretically broken by Shor’s algorithm running on a fault-tolerant quantum computer of sufficient scale. But the threat does not apply uniformly across the UTXO set. It depends on whether the public key associated with a coin has ever been revealed on-chain. For the substantial fraction of bitcoin that sits behind addresses where the public key has been exposed — through address reuse, through legacy Pay-to-Public-Key outputs, or through the brief window between broadcasting a transaction and its confirmation — the cryptographic protection is weaker than for coins whose public keys remain hashed.

A recent Coinbase research note has pushed this distinction back into mainstream discussion by quantifying the exposure: a meaningful slice of circulating supply, including coins in some exchange cold wallets and a large share of dormant Satoshi-era UTXOs, sits in this exposed category. Around the same period, public disagreement among cryptographers over how Bitcoin should respond — migrate, freeze, or wait — has surfaced governance tensions that the protocol has not had to confront before.

We examine the mechanics of the exposure, the size and composition of the at-risk set, the candidate post-quantum signature schemes, and the migration and freezing proposals that the community will eventually have to choose between.

Why public-key exposure is the actual threat surface

img1

Bitcoin addresses are not public keys. They are hashes of public keys, or hashes of scripts that contain public keys. The distinction matters because the cryptographic problem a quantum adversary needs to solve is different in each case.

When a user receives bitcoin to a standard Pay-to-Public-Key-Hash (P2PKH) or Pay-to-Witness-Public-Key-Hash (P2WPKH) address, what appears on-chain is the output of SHA-256 followed by RIPEMD-160 applied to the public key. The public key itself is not revealed until the user spends from that address — at which point the spending transaction must include the public key so that network nodes can verify the signature.

A quantum adversary running Shor’s algorithm can recover a private key from a public key in polynomial time, assuming a fault-tolerant machine of the right scale. Shor’s algorithm does not, however, invert the SHA-256 + RIPEMD-160 hash composition. The best known quantum attack against a generic hash is Grover’s algorithm, which gives a quadratic speedup — turning a 160-bit preimage search into roughly 2^80 quantum operations. That is still computationally extreme and far harder than the ECDSA break.

The practical consequence: a coin sitting in a P2PKH address that has never been spent from is, in a quantum world, protected by hash preimage resistance, not by the discrete log problem on secp256k1. A coin in an address whose public key has been published — because it was once spent from, because it was a P2PK output, or because it is currently in the mempool — is protected only by the discrete log problem, which Shor’s algorithm directly attacks.

The three exposure categories

Three categories of bitcoin have their public keys visible on-chain:

  • Pay-to-Public-Key (P2PK) outputs. The earliest Bitcoin output format, used heavily in 2009 and early 2010, encodes the public key directly in the locking script. Most coinbase rewards from the first year of mining — including the bulk of UTXOs attributed to Satoshi — are P2PK outputs.
  • Reused addresses. Any P2PKH or P2WPKH address from which a transaction has been spent has had its public key revealed. If the owner left a balance at that same address, or returned funds to it later, those funds sit behind a public key that is fully visible to any observer indexing the chain.
  • In-flight transactions. During the window between broadcast and confirmation — typically minutes, but longer under congestion — the public key is in the mempool. A quantum adversary capable of breaking ECDSA inside that window could, in principle, derive the private key, construct a higher-fee replacement transaction, and steal the funds before they confirm.

The first two categories represent static exposure that grows with chain history. The third is a flow problem that affects every transaction made under the legacy scheme, regardless of how the address was generated.

How much bitcoin is actually exposed

img2

Quantifying the at-risk set requires distinguishing between coins that are demonstrably exposed today and coins that would become exposed the moment their owners attempt to move them. The Coinbase analysis and parallel academic work converge on figures in the range of several million BTC for the first category — a meaningful share of circulating supply, though the precise number depends on classification choices.

The exposed set decomposes roughly into three buckets.

Satoshi-era P2PK coins

The largest and most cryptographically clean component is the corpus of P2PK coinbase outputs from 2009 and early 2010. Estimates of coins likely mined by Satoshi cluster around the well-known Patoshi-pattern figure of roughly 1.1 million BTC, with the broader set of early P2PK coinbase outputs reaching higher still. These coins have never moved. Their public keys are written directly into the locking scripts. Under a quantum break of ECDSA, every one of these UTXOs becomes spendable by whoever runs Shor’s algorithm first.

This bucket is the one that generates the sharpest governance tension. The coins are economically abandoned in the strongest possible sense — many predate the existence of an exchange ecosystem and have never been touched — but they remain legitimately owned by whoever holds the corresponding private keys. A freezing rule designed to protect them is also a rule that deprives their owners of access.

Reused P2PKH addresses

The second bucket is the long tail of P2PKH and P2WPKH addresses that have been used as a static deposit address by exchanges, custodians, and individual users. Each time such an address is spent from, the public key becomes a permanent part of chain history; any residual balance, or any future deposit to the same address, sits behind exposed material.

The Coinbase research highlights that this category is not limited to careless individual users. Cold-wallet schemes at several exchanges have historically routed deposits to addresses that had already produced spends, often because the operational model treated a hot address as a long-lived destination. The exposure here is not measured in handfuls of coins; institutional reuse can encompass holdings in the tens or hundreds of thousands of BTC at a single venue.

Lost and dormant exposed coins

A subset of the first two buckets overlaps with coins that are likely lost — keys discarded, hardware destroyed, holders deceased. Lost exposed coins are the bluntest version of the quantum problem: under a successful break, they are not so much stolen as repossessed by an adversary, with no rightful owner left to compete for them. Estimates of lost bitcoin span a wide range, with figures around 3–4 million BTC frequently cited; the portion of that which sits in exposed scripts is smaller but non-trivial.

The cryptographic timeline that matters

img3

The question of when a fault-tolerant quantum computer capable of breaking secp256k1 ECDSA will exist is genuinely open, and the range of credible expert estimates is wide. We will not improve on those estimates here. What is more useful is to identify the structural milestones along which Bitcoin’s exposure changes shape.

What Shor’s algorithm actually requires

Shor’s algorithm reduces both integer factorization and the discrete logarithm problem to polynomial-time quantum routines. The relevant variant for Bitcoin is the elliptic-curve version, which operates on the group of points on secp256k1. Published resource estimates place the requirement for breaking a 256-bit elliptic-curve key in the rough range of millions of physical qubits, assuming current surface-code error-correction overheads, to support several thousand logical qubits running a circuit of considerable depth.

Today’s announced quantum processors operate at scales orders of magnitude smaller, and the gap between physical and logical qubits remains the binding constraint. Progress is real but not uniform: gains in qubit count, gate fidelity, and error-correction efficiency each contribute, and a breakthrough in any one — particularly in error-correction overhead — can compress the timeline by years.

The “harvest now, decrypt later” frame does not apply cleanly

In the broader post-quantum discussion, the standard adversary model is “harvest now, decrypt later”: an attacker records encrypted traffic today and decrypts it once quantum capability arrives. Bitcoin’s situation is different and, in some respects, worse. There is nothing to harvest — the exposed public keys are already on a public ledger and will remain there indefinitely. The adversary does not need to anticipate or store anything; they need only wait.

The corollary is that the migration window is not the period between now and a quantum capability — it is the period between now and the earliest moment that capability becomes plausible to a well-resourced actor. The protocol must complete migration before that earlier date, not after.

The “Q-Day window” and in-flight risk

Even after migration to a post-quantum scheme, legacy outputs remain on-chain. A useful frame is the Q-Day window: the period bracketing the point at which a quantum adversary first becomes capable of breaking ECDSA, during which legacy UTXOs that have not been migrated, frozen, or burned are at acute risk. In-flight transactions broadcast in legacy format during that window are similarly exposed.

The duration of the window is what protocol design choices can influence. A migration that begins early and offers a long transition can move most economic value off the exposed surface before Q-Day; a migration that begins late, or that fails to provide a credible path for inactive holders, leaves a larger residual.

Migration paths and their tradeoffs

img4

There is no consensus on what Bitcoin should do, and the public disagreement among cryptographers is structural rather than tactical. The candidate paths sit on a spectrum from minimal intervention to aggressive ledger modification, and each carries a different distribution of harm.

Opt-in migration with no deadline

The most conservative path is to introduce a post-quantum signature scheme as a new address type via soft fork, and leave migration entirely to coin holders. Active wallets would adopt the new scheme as they upgrade; inactive UTXOs would remain in their current scripts.

The advantage of this path is that it preserves Bitcoin’s strong norm against modifying existing balances. The disadvantage is that it does nothing about the exposed P2PK and reused-address coins. Under a Q-Day event, those coins are taken. The chain experiences a sudden, large unauthorized movement of coins that the protocol cannot distinguish from legitimate spending — because the signatures are cryptographically valid.

Migration with a hard deadline

A more interventionist path adds a deadline. After a published block height, the protocol refuses to validate signatures against legacy scripts; coins held in those scripts become unspendable. This is sometimes framed as a soft freeze: the coins are not confiscated, but they cannot be moved.

The effect is to convert exposed coins into burned coins by a date certain. Active holders are given a long migration window — typically several years in published proposals — during which they can move funds from legacy to post-quantum scripts. Holders who do not act, either because they cannot or because they no longer hold the keys, lose access.

The case for the deadline is that it eliminates the windfall: a quantum adversary cannot harvest coins that the protocol itself has rendered unspendable. The case against is that it imposes a centralized decision — by a particular date, on a particular set of UTXOs — that is in tension with the property-rights model Bitcoin has historically defended.

Selective freezing of exposed scripts only

A narrower variant is to freeze only the scripts where public keys are already on-chain — P2PK outputs and addresses with prior spends — while leaving unspent, unrevealed P2PKH addresses alone. The argument is that hashed addresses retain meaningful protection from Grover’s algorithm and do not need to be migrated on a quantum-driven schedule; only the exposed subset is at risk.

This narrows the population of coins affected but does not resolve the underlying tension. Selecting the criterion still requires a protocol-level decision about which UTXOs to disable. And the boundary is not entirely clean: a holder of a reused address may still have legitimate control of the private key and a legitimate intent to spend.

Recovery mechanisms via proof of prior ownership

A more elaborate proposal layers a recovery mechanism on top of any freezing rule. Holders of frozen coins could later prove ownership through some mechanism that is not vulnerable to quantum attack — for example, by demonstrating knowledge of a seed phrase via a post-quantum zero-knowledge proof, or by referencing an earlier non-ECDSA commitment.

The mechanics are not trivial. Most current Bitcoin wallets do not produce any artifact, beyond the ECDSA key itself, that could later be used to prove ownership in a quantum-safe way. A recovery scheme would either need to be retrofitted — requiring active users to commit to a post-quantum proof before the deadline, which collapses back into ordinary migration — or rely on out-of-band information such as hardware-bound attestations, which most early Bitcoin users do not have.

The post-quantum signature scheme question

img5

Choosing a replacement for ECDSA is an engineering decision with significant on-chain consequences. The candidates that have emerged in the broader NIST post-quantum standardization process each carry distinct tradeoffs in signature size, verification cost, and assumed cryptographic hardness.

Hash-based signatures

Hash-based schemes such as Lamport signatures and their stateful variants (XMSS, LMS) and stateless variants (SPHINCS+) rely on the security of the underlying hash function rather than on any number-theoretic problem. They are widely regarded as the most cryptographically conservative post-quantum option: if the hash function holds, the signature holds.

The cost is size. A single SPHINCS+ signature runs to several kilobytes — orders of magnitude larger than the 64–72 bytes of an ECDSA signature. Stateful Lamport-family schemes are smaller per signature but require careful state management to avoid key reuse, which is poorly suited to the loose, multi-device wallet model that Bitcoin users have come to expect.

For Bitcoin, the implication is direct: a transition to hash-based signatures would meaningfully expand transaction sizes, reduce block throughput in terms of transactions per block, and raise on-chain fees for equivalent operations. Block weight discounting could mitigate this, but the tradeoff is structural.

Lattice-based signatures

Lattice-based schemes such as CRYSTALS-Dilithium, selected by NIST as the primary post-quantum signature standard, are based on the hardness of structured lattice problems. Their signatures are larger than ECDSA — typically a few kilobytes — but smaller than SPHINCS+, and verification is fast.

The conservatism question is sharper here. Lattice cryptography is younger than hash-based cryptography, and the structured-lattice assumptions underlying Dilithium have a shorter history of public cryptanalysis than the hardness assumptions behind ECDSA at a comparable point in its lifecycle. The cryptographer disagreements that have surfaced in public discussion this year center substantially on how much confidence to place in these assumptions for an asset class where a single break is catastrophic and irreversible.

Other candidates

Isogeny-based schemes were once considered promising but suffered serious breaks in 2022. Code-based and multivariate schemes have other tradeoffs that make them poor fits for Bitcoin’s on-chain footprint. The practical choice for Bitcoin is between hash-based conservatism and lattice-based efficiency, and the protocol does not have to make this choice in isolation — it can adopt a hybrid scheme that requires both signatures to validate, accepting the size cost in exchange for surviving a break in either family.

The hybrid case

A hybrid construction — for example, requiring both a SPHINCS+ signature and a Dilithium signature, or pairing one of those with a retained ECDSA signature during a transition period — offers a meaningful defense-in-depth posture. The cost is additive in signature size, and the engineering complexity is higher, but the security argument is the strongest: an adversary needs to break both schemes, or both the post-quantum scheme and ECDSA, to forge a transaction.

For a system where the worst case is a chain-wide loss of confidence in the validity of historical balances, the conservatism case for hybrids is unusually strong.

Implications and open questions

img6

The cryptographic substance of the quantum question is well understood. The governance substance is not, and that is where the more interesting tensions lie.

The first open question is whether Bitcoin can execute any deadline-based migration without fracturing. The protocol’s social contract has historically treated UTXOs as durable property: a coin sent in 2010 should remain spendable in 2030 by whoever holds the key. A deadline that converts unspent coins into unspendable coins is a deliberate departure from that contract, even if the rationale is to deny an external adversary a windfall rather than to confiscate value. The cryptographer community is openly split on whether the departure is justified, and the split does not map cleanly onto familiar Bitcoin political camps.

The second open question is informational. Even with a deadline in place, holders need to know that one exists, that their coins are affected, and how to migrate. The substantial fraction of bitcoin held by inactive users — recipients who set up a wallet years ago and never returned to it — is by construction the hardest population to reach. A deadline announcement that reaches active wallets through routine software upgrades will not reach holders who have not opened their wallets in a decade.

The third question is operational, and it falls disproportionately on custodians. Exchanges and institutional holders that have historically reused deposit addresses face a migration that is not just a software update but a re-architecture of their cold-storage model. The Coinbase analysis frames this as a near-term hygiene issue: rotating to fresh addresses, ending the practice of reusing static deposit destinations, and structuring cold wallets so that no public key is unnecessarily revealed. None of this requires consensus changes, and all of it reduces exposure now.

The fourth question is about the legitimacy of dormant coins as a special category. If a future migration treats Satoshi-era P2PK outputs differently — for instance, by accepting them as the canonical lost-coin class and freezing them on a separate schedule — that is itself a precedent. It establishes that the protocol can identify a subset of holders and apply distinct rules to their UTXOs. Once that capability is exercised, it is harder to argue that it cannot be exercised again under different motivations.

What we are watching for, in order of immediacy: the pace at which large custodians publicly commit to ending address reuse and migrating cold wallets to non-revealing schemes; the emergence of a credible BIP or set of BIPs proposing concrete deadlines and signature schemes, with public review from cryptographers outside the immediate Bitcoin development circle; the response of the mining and node operator base to those proposals, which is the population that ultimately enforces any consensus change; and the trajectory of fault-tolerant quantum hardware, particularly improvements in error-correction overhead, which is the variable most likely to compress the available migration window.

The quantum question is not urgent in the sense that something must happen this quarter. It is urgent in the sense that the decisions that determine how Bitcoin handles its exposed coins will be made over years, not months, and the cost of starting late is asymmetric: a migration begun early and never needed is a modest waste; a migration begun late and overtaken by hardware progress is a loss the protocol cannot fully recover from.

Read next

Follow the next market structure breakdown

New Steadyrain research is published several times a week across DeFi risk, BTCFi, stablecoins, and RWA.