Quantum Computing and Bitcoin: What Would Break, and What Wouldn't
A large quantum computer would threaten Bitcoin's signatures and exposed public keys, not SHA-256 mining. The 2026 estimates and BIP 360 and 361.

Quantum computing threatens Bitcoin's signatures, not its mining. A large enough quantum computer running Shor's algorithm could work out a private key from a public key, and many bitcoin sit in outputs whose public key is already visible on the chain. Mining with SHA-256 is far less exposed. The fixes on the table, BIP 360 and BIP 361, are drafts, not activated rules.
Part 5 of the CyphrQ blockchain series turns to quantum risk. Part 1 noted briefly that elliptic-curve signatures are the quantum weak point; this part explains which bitcoin are exposed and what changes have been proposed. For when a quantum computer might arrive and what NIST has standardised, see the Q-Day explainer; this post doesn't repeat it. It is general information on cryptography and protocol proposals, not financial or investment advice, and says nothing about the price of bitcoin or whether to hold it. Sources were checked on 22 November 2026.
What does Bitcoin use cryptography for?
Bitcoin relies on cryptography for two separate jobs, and a quantum computer affects them very differently.
- Signatures prove who may spend. Each spend carries a digital signature made with a private key. Bitcoin uses ECDSA and, since the Taproot upgrade, Schnorr signatures, both over the elliptic curve secp256k1. BIP 340 specifies "64-byte Schnorr signatures over the elliptic curve secp256k1", and BIP 340 and BIP 341 (Taproot) are both listed as deployed (BIP 340, BIP 341).
- Hashing secures the history. Mining is a search for a value whose hash meets a target. The 2008 white paper describes proof-of-work as "scanning for a value that when hashed, such as with SHA-256, the hash begins with a number of zero bits" (Bitcoin white paper). Many address types are also hashes of a public key.
A public key is the half of a key pair that others can see; the private key must stay secret. Today, nobody can work backwards from the public key to the private one. That is the assumption a quantum computer would remove.
What could quantum computing break in Bitcoin?
Shor's algorithm is a quantum method for solving the maths behind elliptic-curve keys. BIP 360 puts the threat plainly: it would allow "the derivation of private keys from public keys", which the BIP calls "quantum key recovery". The machine that could do it at full size is called a cryptographically relevant quantum computer (CRQC). BIP 360 itself says "it is unclear when or if CRQCs will become viable in the future" (BIP 360).
How big would that machine need to be? Two published estimates show how the number has moved.
| Estimate | What it says for a 256-bit curve |
|---|---|
| Roetteler, Naehrig, Svore and Lauter, 2017 | At most 9n + 2⌈log₂(n)⌉ + 10 qubits for an n-bit prime field. For n = 256, that formula gives 2,330 qubits (arXiv:1706.06752) |
| Babbush, Zalcman, Gidney and others, March 2026 | "<1200 logical qubits and <90 million Toffoli gates or <1450 logical qubits and <70 million Toffoli gates"; on superconducting hardware with 1e-3 physical error rates, "in minutes using fewer than half a million physical qubits" (arXiv:2603.28846) |
A logical qubit is an error-corrected qubit built from many physical ones, which is why the physical count is so much larger. The 2026 paper validated its circuits with a zero-knowledge proof "without disclosing attack vectors", so the method itself is not public.
Which coins have a visible public key?
What matters is whether the public key for a coin is already on the chain. BIP 360 separates two cases.
- Long exposure. "A long exposure attack is an attack performed on exposed blockchain data". The public key has been visible for a long time, so an attacker can work on it at leisure.
- Short exposure. These attacks "require faster quantum computers", because the public key only appears when the owner spends, and the attacker must recover the key before the spend is confirmed.
On which outputs are exposed, BIP 360 says funds in P2PKH, P2SH, P2WPKH, P2WSH and P2MR outputs "can become vulnerable to long exposure quantum attacks anytime their script reveals a public key". It lists P2PK and Taproot outputs as "fundamentally vulnerable to long exposure attacks", along with reused outputs. In short: an address that has never spent keeps its public key hidden behind a hash; reusing an address, or using an output type that puts the key on the chain, removes that cover.
How much is exposed? The authors of BIP 361 write that "as of March 1, 2026, over 34% of all bitcoin have revealed a public key on-chain" (BIP 361). That is their figure, from their own analysis; we have not checked it on the chain ourselves.
The short-exposure case is not only theoretical in the 2026 paper. Its authors conclude that "the first fast-clock CRQCs would enable on-spend attacks on public mempool transactions of some cryptocurrencies". The mempool is the waiting area where broadcast transactions sit before a miner includes them in a block.
What would a quantum computer not break?
Mining is the lesser worry. For hashing, the relevant quantum method is Grover's search, which gives a far smaller speed-up than Shor gives against signatures. In a 2017 study, Aggarwal and co-authors found "the proof-of-work used by Bitcoin is relatively resistant to substantial speedup by quantum computers in the next 10 years, mainly because specialized ASIC miners are extremely fast compared to the estimated clock speed of near-term quantum computers" (arXiv:1710.10377).
The same paper's warning on signatures was stark: the scheme "could be completely broken by a quantum computer as early as 2027, by the most optimistic estimates". That was the optimistic end of a 2017 range, not a forecast of what will happen.
So a CRQC would not let anyone mine all the blocks or undo the chain's hashing. The risk sits in the keys.
What migration proposals exist?
Two draft Bitcoin Improvement Proposals (BIPs) have been assigned numbers. Neither has been activated. BIP 361's authors note that "historically, Bitcoin has been slow to adopt code changes, often taking multiple years to be approved."
BIP 360: Pay-to-Merkle-Root (P2MR). Draft, assigned 18 December 2024. It proposes a new output type that works "with nearly the same functionality as P2TR (Pay-to-Taproot) outputs, but with the key path spend removed". Removing that path means the output never sits on the chain with a bare public key. Its limits are spelled out: P2MR outputs are "only resistant to 'long exposure attacks'", and "P2MR does not, by itself, protect against short exposure quantum attacks". Full protection "may require the use of post-quantum signature schemes", which the authors plan to propose separately.
BIP 361: Post Quantum Migration and Legacy Signature Sunset. Draft, informational, assigned 11 February 2026, first author Jameson Lopp. It assumes a post-quantum output type exists, then sets a timetable:
| Phase | What happens | When |
|---|---|---|
| A | Only sends from legacy scripts to post-quantum scripts are allowed; nobody can send new funds to quantum-vulnerable addresses | 160,000 blocks (about 3 years) after activation |
| B | Nodes tighten verification of ECDSA and Schnorr spends, using a "quantum-safe rescue protocol" | 2 years after Phase A |
BIP 361 is open about the hard part. Coins whose owners never move them would become hard or impossible to spend, and the authors write that "it remains to be seen how much of the legacy Bitcoin supply can be theoretically covered by such rescue protocols". Their own framing of the choice is that any proposal must either allow quantum theft of vulnerable coins, throttle it, or "allow no one to steal vulnerable coins".
The 2026 Babbush paper lands in the same place from the other side, urging "all vulnerable cryptocurrency communities to join the ongoing migration to PQC without delay". PQC is post-quantum cryptography: algorithms designed to resist both ordinary and quantum computers.
What can bitcoin holders and custodians do today?
- Don't reuse addresses. A fresh address per payment keeps public keys off the chain until you spend.
- Know your output types. Ask which script types your wallets and custody provider use, and how much sits in outputs whose public key is already visible.
- Ask your custodian for its plan. Which proposals does it track, and how would it move client funds to a new output type?
- Watch the drafts, not the headlines. BIP 360 and BIP 361 are public documents on GitHub; their status line shows whether anything has changed.
- Fold it into your wider inventory. Crypto holdings belong in the same cryptography inventory as TLS, VPNs and code signing, and the NIST IR 8547 timeline gives the deadlines for elliptic-curve signatures in US federal systems.
Going deeper: for security and IT teams
Threat model. The attacker is whoever first runs a CRQC, and BIP 361 argues they may not announce it: "Quantum attackers could compute the private key for known public keys then transfer all funds weeks or months later, in a covert bleed". What they need is a public key. What they get is the ability to sign any spend from the matching outputs, indistinguishable on the chain from the real owner. There is no password to reset and no chargeback.
Two exposure windows, two defences. Long exposure is fixed by keeping public keys off the chain until spend time (address hygiene, and output types such as P2MR that drop the key path). Short exposure can only be fixed by post-quantum signatures, because the public key must be revealed to verify an ECDSA or Schnorr signature. Any roadmap that claims full protection without new signatures is overstating it, and BIP 360 says so of itself.
Extended public keys are exposure too. Under BIP 32, "knowing an extended public key allows reconstruction of all descendant non-hardened public keys" (BIP 32). An xpub handed to an accounting tool, a block explorer service or a payment processor gives that party every public key the wallet will use on non-hardened paths. Treat xpubs as sensitive: list who holds them, prefer watch-only setups you control, and rotate to a new wallet if one leaks. BIP 361 also points the other way: hardened BIP 32 derivation may let genuine owners prove ownership in a future rescue protocol, so keep seed backups intact.
Inventory by script type. For each wallet your organisation controls, record:
| Field | Why it matters |
|---|---|
| Output script type (P2PK, P2PKH, P2WPKH, P2SH, P2WSH, P2TR) | BIP 360's exposure list is by script type |
| Has any output from this address been spent before? | A past spend put the public key on the chain |
| Is the address reused for incoming payments? | Reuse turns short exposure into long exposure |
| Is the xpub shared with any third party? | Shared xpubs reveal future public keys |
| Signing setup (single key, multisig, MPC) and who can change it | Migration means moving funds to new outputs under the same controls |
Plan the move as a key ceremony. Moving funds to a new output type is a high-value transfer. Run it with the same controls as any treasury movement: dual approval, allowlisted destinations, a test amount first, and reconciliation afterwards. Rehearse it before any deadline exists. The crypto custody security guide covers those controls.
Detection and evidence. If a CRQC is used quietly, the first visible sign may be old coins moving. Monitor your own exposed outputs for any spend you did not initiate, and keep signed records of every planned movement so an unplanned one stands out. For the wider ecosystem, chain-analytics alerts on long-dormant P2PK outputs moving are a cheap early signal.
Questions to ask a custodian, exchange or wallet vendor:
- Which output script types hold client funds, and how much is in outputs with a visible public key?
- Do you reuse deposit addresses?
- Who holds xpubs for client or treasury wallets?
- Which post-quantum proposals are you tracking, and what is your migration runbook?
- How would you prove to clients that a migration moved every coin?
Key takeaways
- A cryptographically relevant quantum computer would threaten Bitcoin's ECDSA and Schnorr signatures by recovering private keys from public keys.
- SHA-256 mining is much less exposed; a 2017 study found it "relatively resistant" to quantum speed-up for the next 10 years.
- A March 2026 paper by Babbush, Gidney and co-authors estimated the attack at fewer than 1,200 logical qubits and under 90 million Toffoli gates, or fewer than 1,450 logical qubits and under 70 million.
- BIP 361's authors estimate that over 34% of all bitcoin had a revealed public key as of 1 March 2026.
- BIP 360 (P2MR) and BIP 361 (a phased sunset of legacy signatures) are drafts; neither is active.
- Avoid address reuse, protect xpubs, and inventory holdings by script type now.
Read more Q-Day Watch explainers.
Sources
- Satoshi Nakamoto: "Bitcoin: A Peer-to-Peer Electronic Cash System", 2008, checked 22 November 2026
- Bitcoin Improvement Proposals: BIP 32, Hierarchical Deterministic Wallets, checked 22 November 2026
- Bitcoin Improvement Proposals: BIP 340, Schnorr Signatures for secp256k1, checked 22 November 2026
- Bitcoin Improvement Proposals: BIP 341, Taproot: SegWit version 1 spending rules, checked 22 November 2026
- Bitcoin Improvement Proposals: BIP 360, Pay-to-Merkle-Root (P2MR), draft, checked 22 November 2026
- Bitcoin Improvement Proposals: BIP 361, Post Quantum Migration and Legacy Signature Sunset, draft, checked 22 November 2026
- Babbush, Zalcman, Gidney et al.: "Securing Elliptic Curve Cryptocurrencies against Quantum Vulnerabilities: Resource Estimates and Mitigations", arXiv:2603.28846, March 2026, checked 22 November 2026
- Roetteler, Naehrig, Svore, Lauter: "Quantum resource estimates for computing elliptic curve discrete logarithms", arXiv:1706.06752, 2017, checked 22 November 2026
- Aggarwal, Brennen, Lee, Santha, Tomamichel: "Quantum attacks on Bitcoin, and how to protect against them", arXiv:1710.10377, 2017, checked 22 November 2026
Spotted a mistake? Report a correction.