- Home
- Quantum Computing
- Can quantum computers break Bitcoin? What is really at risk
Can quantum computers break Bitcoin? What is really at risk
Every few months a headline announces that quantum computers are about to wipe out Bitcoin, and every few months someone reassures everybody that it’s science fiction. Both camps tend to skip the interesting part, which is that Bitcoin is partly vulnerable and partly not, and the difference comes down to a handful of very specific technical details. We’ll go through them without the drama.
This article is educational. It is not financial advice: invest only what you can afford to lose. If you’re new to the machines themselves, our simple guide to quantum computing is the right warm-up, and the broader encryption picture lives in our piece on post-quantum cryptography.
Two jobs, two kinds of cryptography
Bitcoin leans on cryptography in two quite different ways, and quantum computers treat them very differently. The first is hashing. Mining is a lottery in which machines repeatedly run SHA-256 over a block of data hoping to land on a result below a target number. Hashes are also used to turn your public key into the shorter address you actually share with people.
The second is digital signatures. When you spend coins, your wallet signs the transaction with your private key, and the network verifies that signature against your public key. Bitcoin uses elliptic-curve signatures on a curve called secp256k1, plus the newer Schnorr signatures introduced with Taproot, which are built on the same curve. Nobody can work backwards from the public key to the private key, because doing that means solving the elliptic-curve discrete logarithm problem, which is brutally hard for ordinary computers.
For a quantum computer, that is precisely the problem Shor’s algorithm was made for. Shor’s algorithm, published in 1994, solves factoring and discrete logarithms efficiently, which is why RSA and elliptic curves are both on the quantum hit list. Hashing is a different story: the best known quantum trick against it, Grover’s algorithm, only gives a square-root speedup. For SHA-256 that still leaves an astronomically large amount of work, and the speedup is hard to turn into a real advantage once you count the overhead of error correction.
| Part of Bitcoin | Cryptography | Quantum threat | Why |
|---|---|---|---|
| Signatures (ECDSA, Schnorr) | Elliptic curve secp256k1 | Serious, long-term | Shor’s algorithm solves the discrete log problem |
| Mining | SHA-256 hashing | Minor | Grover gives only a quadratic speedup, hard to exploit at scale |
| Address hashing | SHA-256 + RIPEMD-160 | Minor | Same reason; the hash hides the public key until you spend |
The detail that matters: when is your public key exposed?
Here is where the nuance lives, and where most of the scary headlines go wrong. A quantum attacker needs your public key to compute your private key. In the most common types of Bitcoin address, the public key is not on the blockchain at all: all that’s there is a hash of it. As long as you’ve only ever received coins to a fresh address and never spent from it, the key stays behind that hash and the attacker has nothing to feed into Shor’s algorithm.
The moment you spend, that changes. To prove you own the coins, your transaction has to reveal the public key. From that instant it’s visible to anyone, and it stays visible forever. This opens two distinct windows of exposure, and they’re worth telling apart.
The first is the long-term exposure. Some coins sit behind public keys that are already out in the open: the earliest Bitcoin outputs used a format that put the key directly on the chain, many addresses have been reused after spending, and newer script types such as Taproot expose a key by design. Those coins don’t have a hash standing guard. If a capable quantum computer ever appears, they are the low-hanging fruit, and that includes coins that haven’t moved in over a decade, whose owners may have lost their keys or may simply not be paying attention.
The second is the short-term exposure during a transaction. Between the moment you broadcast a payment and the moment it is confirmed in a block, your public key is visible in the pool of waiting transactions. A very fast quantum machine could in theory derive the private key in that window and race a competing transaction to steal the funds. Because blocks arrive about every ten minutes on average, this attack needs a computer far more powerful than the one needed for the long-term case. Most researchers see it as the later of the two threats.
How big a machine would it take?
This is the question that decides whether to worry now or in thirty years, and the honest answer is that it moves. Breaking a 256-bit elliptic-curve key with Shor’s algorithm needs a large number of logical qubits, meaning error-corrected qubits that behave reliably. Because real hardware is noisy, each logical qubit is built from many physical qubits working together, so the total ends up in the hundreds of thousands to millions of physical qubits in most published estimates, running for hours or longer without failing.
Today’s best devices have hundreds to a couple of thousand physical qubits, and the error correction needed at that scale is still being demonstrated in small experiments. Estimates for what a codebreaker would need have been dropping as researchers find smarter ways to run the algorithm, which is why serious people keep revisiting the numbers. We wouldn’t trust anyone who gives you a confident year. Official migration timelines from governments point to the early-to-mid 2030s for retiring vulnerable cryptography in sensitive systems, but that is precaution, not a prediction that the machine will exist by then. For a feel of where the hardware really stands, see who is building quantum computers.
These bars are our qualitative reading of the risk, not measured data.
Can Bitcoin defend itself?
Technically, yes, and this is the part the doom headlines leave out. Bitcoin’s rules can be changed by a soft fork, the same mechanism that delivered SegWit and Taproot. A future upgrade could introduce a new address type protected by a post-quantum signature scheme, built on the kind of algorithms that standards bodies have already published. Developers have discussed concrete proposals for this, and research into post-quantum signatures for Bitcoin continues. We’d avoid describing any single proposal as settled, because none has been activated.
The obstacles are less about mathematics than about people. Post-quantum signatures are considerably larger than elliptic-curve ones, which means bigger transactions and either higher fees or less room in each block. Everyone with coins would eventually need to move them to the new address type, and that takes time and attention. And then there’s the awkward question nobody has a clean answer to: what happens to coins whose keys are exposed and whose owners never migrate, because they’ve lost access or are no longer around? Leave them to be claimed by whoever gets a quantum computer first, or freeze them? It’s a genuinely contentious debate, because it touches the principle that nobody can take your coins, and the principle that the network shouldn’t hand a windfall to an attacker.
None of this is unique to Bitcoin. Most blockchains and a good share of the internet’s infrastructure use the same family of cryptography, and the whole industry is facing the same migration. What is unusual about Bitcoin is that it has no central party who can order an upgrade, so change happens by rough consensus, slowly and loudly.
What you can do, without panic
If you hold crypto, the practical steps are modest and mostly boring. Don’t reuse addresses. Keep your wallet software up to date, since that’s how any future migration tool will reach you. Be wary of anyone selling a “quantum-proof wallet” or a coin that claims to be immune: genuine protection will arrive as a protocol upgrade and a software update, not as a product with a premium price tag. And if a holding is meant to sit untouched for decades, it’s reasonable to keep an eye on the migration discussion every year or so, the way you’d check on any long-term plan.
It also helps to keep the scale in perspective. Even the most worried researchers describe a risk that will give plenty of warning, since a machine capable of this would be among the largest scientific instruments ever built and the improvement in hardware is visible in public. Public key exposure, the slow pace of real-world attacks and the existence of a known upgrade path all point towards “manage it” rather than “flee it”.
If you’d like to understand the technology instead of fearing it, you can try a real quantum computer for free, and for deeper reading our quantum computing books review covers what’s worth your time.
Understand the maths behind it
Our pickBooks on cryptography and Bitcoin
A readable introduction to public-key cryptography, plus a good book on how Bitcoin works under the hood, will make every quantum headline easier to judge for yourself.
See Bitcoin and cryptography books on Amazon →Our take
We think the sober view is also the most interesting one. Quantum computers are a legitimate long-term engineering challenge for Bitcoin, specifically for its signatures and specifically for coins whose public keys are already visible. They are not a switch that turns the network off, they are nowhere near ready today, and the toolbox for defending against them already exists. The real test is social: whether a decentralised community can agree on an upgrade in time. That is a more human problem than a physics one, and it’s the one worth following. More in our Quantum Computing category.