Post-Quantum Cryptography: Securing Bitcoin
Learn how post-quantum cryptography protects Bitcoin from future quantum threats. Explore NIST algorithms, quantum exposure, and migration paths for c...
Last updated: 6 December 2026
Post quantum cryptography is cryptography designed to remain secure after quantum computers exist. It runs as standard software on ordinary hardware, not on quantum machines, and it protects data against attacks from both classical and future quantum computers. Bitcoin's elliptic-curve signatures are the layer most exposed to a quantum threat; its SHA-256 hashing is not. No quantum computer today can attack either layer, and no protocol upgrade has been activated, but NIST finalized three post-quantum algorithms in August 2024 that could eventually serve as replacements.
This article is educational and does not constitute investment, trading, or security advice. Readers evaluating their own holdings should make their own assessment based on current information.
Table of Contents
- Key Takeaways
- What Is Post-Quantum Cryptography?
- Post-Quantum Cryptography vs Quantum Cryptography vs QKD
- Why Post-Quantum Cryptography Exists Now: Harvest Now, Decrypt Later
- NIST Post-Quantum Cryptography Algorithms
- ML-KEM vs ML-DSA vs SLH-DSA: What Each One Does
- Bitcoin's Quantum Exposure: Which Cryptography Is Actually at Risk
- Which Bitcoin Addresses Are Exposed Today
- Can Post-Quantum Cryptography Secure Bitcoin?
- How Bitcoin Could Migrate to Post-Quantum Cryptography
- How Soon Is the Quantum Threat to Bitcoin?
- What Bitcoin Holders Can Do Today
- Frequently Asked Questions
- Conclusion
Key Takeaways
- Post-quantum cryptography runs on today's hardware. The upgrade path is a software and standards problem, not a wait for quantum machines.
- Bitcoin is not uniformly exposed: its ECDSA signatures (secp256k1) are the layer a quantum computer could break, while its SHA-256 hashing retains adequate post-quantum security.
- NIST finalized three post quantum cryptography algorithms in August 2024: a key encapsulation mechanism called ML-KEM (FIPS 203) and two digital signature schemes, ML-DSA (FIPS 204) and SLH-DSA (FIPS 205).
- Bitcoin addresses that have already revealed their public key on-chain (P2PK outputs, reused addresses) carry more quantum risk than fresh addresses where the key remains hidden behind a hash.
- Migration proposals like BIP 360 (P2QRH) exist but remain unactivated and under discussion, and for most holders the appropriate response today is address hygiene and monitoring, not an emergency transfer of funds.
What Is Post-Quantum Cryptography?
Post quantum cryptography is cryptography that stays secure after quantum computers exist. More precisely, it is a family of encryption and digital-signature algorithms built on mathematical problems that remain hard for both classical and quantum machines. The name "post-quantum" means "ready for the era after a large quantum computer arrives," not "powered by quantum hardware." These algorithms run as standard software on ordinary computers.
Today's public-key cryptography relies on problems that classical computers find impractical to solve. RSA, the system that secures HTTPS and most online banking, depends on the difficulty of factoring large numbers. Elliptic-curve cryptography, which Bitcoin uses to authorize transactions, depends on the difficulty of computing discrete logarithms on a curve. A sufficiently powerful quantum computer could solve both kinds of problem efficiently. Post-quantum cryptography sidesteps the threat by building on different foundations: problems that neither classical nor quantum machines can solve quickly.
Post-Quantum Cryptography vs Quantum Cryptography vs QKD
Post-quantum cryptography is not the same as quantum cryptography. The two terms describe opposite approaches to the same problem.
| Dimension | Post-Quantum Cryptography | Quantum Cryptography / QKD |
|---|---|---|
| Hardware required | Standard computers | Specialized quantum hardware at both ends |
| How it works | Conventional math on conventional machines, chosen to resist quantum attacks | Uses quantum physics (e.g., photon properties) to distribute keys so eavesdropping is detectable |
| Deployment | Software upgrade; already standardized by NIST | Requires fiber or free-space optical links; limited to point-to-point channels |
Quantum key distribution (QKD) transmits encryption keys using properties of photons, so that any interception disturbs the signal and reveals itself. It is a physics-based defense, not a software upgrade. Post-quantum cryptography, by contrast, can be deployed on the hardware you already own.
Why Post-Quantum Cryptography Exists Now: Harvest Now, Decrypt Later
If no machine can run a code-breaking quantum algorithm yet, why is the field moving now? Because the attack clock starts when data is captured, not when the hardware ships.
Adversaries can record encrypted traffic today and store it until a quantum computer capable of breaking the encryption exists. This strategy is called harvest now, decrypt later. Intelligence agencies and state-sponsored groups have both the motivation and the storage capacity to archive intercepted data for years. Once a machine running Shor's algorithm becomes operational, all of that archived traffic encrypted under RSA or elliptic-curve keys becomes readable.
This is why NIST's post-quantum cryptography project launched years before any code-breaking quantum computer existed. For Bitcoin, the analog is public keys already sitting on the blockchain. An attacker does not need to intercept anything; the public keys of certain address types are already published on-chain, waiting to be targeted once the hardware matures.
NIST Post-Quantum Cryptography Algorithms
The post quantum cryptography algorithms NIST finalized in August 2024 number three, concluding an eight-year evaluation that began with a public call for proposals in 2016. Dozens of candidate schemes were submitted, reduced through multiple rounds of analysis, and tested against both classical and quantum attack models. The result is three Federal Information Processing Standards.
- ML-KEM (FIPS 203) establishes a shared secret between two parties over an open channel; a key encapsulation mechanism (KEM) is the formal name for that job. Derived from CRYSTALS-Kyber, it protects TLS sessions and VPN tunnels. It is not a signature scheme.
- ML-DSA (FIPS 204), derived from CRYSTALS-Dilithium, is a lattice-based digital signature scheme. It is the closest functional replacement for the ECDSA signatures Bitcoin uses to authorize transactions.
- SLH-DSA (FIPS 205), derived from SPHINCS+, is a stateless hash-based signature scheme. Its security rests only on the assumption that hash functions are hard to invert, which makes it the most conservative fallback, but its signatures are larger and slower to generate.
If you have read older sources referencing Kyber, Dilithium, or SPHINCS+, those are the previous names for the same algorithms.
Are the standards settled? The three FIPS documents are final. But the broader portfolio is not closed: in 2025 NIST selected HQC as an additional backup KEM, and it continues to evaluate further signature candidates. The standardization process is still evolving.
ML-KEM vs ML-DSA vs SLH-DSA: What Each One Does
The three NIST standards serve different jobs: one protects data channels and two produce digital signatures, each built on a different mathematical foundation. Lattice-based cryptography (behind ML-KEM and ML-DSA) relies on hard problems involving high-dimensional geometric grids. Hash-based cryptography (behind SLH-DSA) relies only on the difficulty of inverting hash functions, trading speed and compactness for minimal assumptions.
| Feature | ML-KEM (FIPS 203) | ML-DSA (FIPS 204) | SLH-DSA (FIPS 205) |
|---|---|---|---|
| Prior name | CRYSTALS-Kyber | CRYSTALS-Dilithium | SPHINCS+ |
| Function | Key encapsulation (securing channels) | Digital signatures | Digital signatures |
| Math family | Lattice-based | Lattice-based | Hash-based |
| Approx. output size | ML-KEM-768: ~1,088-byte ciphertext | ML-DSA-44: ~2,420-byte signature | SLH-DSA-128s: ~7,856-byte signature |
| Speed | Fast | Fast | Slower |
| Bitcoin relevance | Protects wallet-to-node or node-to-node communication | Candidate to replace ECDSA for transaction signing | Conservative fallback for transaction signing |
For context, a standard Bitcoin ECDSA signature today is roughly 71 to 72 bytes. An ML-DSA-44 signature is about 33 times that size. An SLH-DSA-128s signature runs past 7,800 bytes, which turns a single-input transaction into something close to a full block's worth of witness data at current limits. This size gap is the central engineering constraint for any Bitcoin migration.
Bitcoin's Quantum Exposure: Which Cryptography Is Actually at Risk
The post quantum cryptography Bitcoin question is narrower than headlines suggest. Bitcoin relies on three separate cryptographic layers, and only one of them, its elliptic-curve signature scheme, is structurally vulnerable to a sufficiently powerful quantum computer. The three layers are ECDSA over secp256k1 for transaction authorization, SHA-256 for proof-of-work mining and address hashing, and RIPEMD-160 in legacy address derivation. Each faces a different quantum threat profile.
Shor's Algorithm vs secp256k1: Why Signatures Are the Weak Point
Shor's algorithm can solve the elliptic-curve discrete logarithm problem that protects Bitcoin's ECDSA signatures, given a fault-tolerant quantum computer with enough logical qubits. The same algorithm breaks RSA by factoring large integers efficiently. In both cases the attack runs in polynomial time, meaning the difficulty does not scale fast enough to stay ahead of a quantum machine.
For Bitcoin, this means an attacker with a sufficiently large quantum computer could derive a private key from a known public key and then sign transactions spending coins held at that address. The key word is "known." The public key must be visible to the attacker for Shor's algorithm to work.
SHA-256 and Grover's Algorithm: Why Hashing Is Not the Weak Link
Grover's algorithm provides a quadratic speedup against hash functions, not an exponential one. Applied to SHA-256, it roughly halves the effective bit-security: from 256 bits down to about 128 bits. A 128-bit security level is still considered adequate by current cryptographic standards, including NIST's own post-quantum security categories.
SHA-256 based proof-of-work mining is therefore not the security layer at risk. A quantum computer running Grover's algorithm would gain a square-root advantage against the mining puzzle, but that is far less dramatic than the polynomial-time advantage Shor's gives against signatures. Quantum speedups do not meaningfully threaten the proof-of-work mechanism as currently constructed.
Which Bitcoin Addresses Are Exposed Today
Not all Bitcoin addresses carry the same quantum risk. The deciding factor is whether the public key is already visible on the blockchain.
| # | Address Type | Public Key Visible On-Chain? | Quantum Exposure | Notes |
|---|---|---|---|---|
| 1 | P2PK | Yes, always | High | Early Bitcoin outputs (2009 to 2012); includes coins attributed to Satoshi Nakamoto |
| 2 | P2PKH (fresh, never spent from) | No, hidden behind hash | Low (until spend) | Public key is revealed only when you sign a transaction |
| 3 | P2PKH (reused after spending) | Yes, from prior spend | High | A previous spend exposed the key; any remaining balance is at risk |
| 4 | P2WPKH (fresh) | No, hidden behind hash | Low (until spend) | Same protection model as fresh P2PKH |
| 5 | P2TR (key-path) | Tweaked public key in output | Medium | The tweaked key is on-chain; exposure level is debated among researchers |
| 6 | Any address at spend time | Yes, briefly in mempool | Mempool window | The public key is broadcast with the transaction and visible before confirmation |
That mempool window is short, but it is not zero, and it is the only exposure a fresh address ever has. Avoiding address reuse keeps your public key hidden until the moment you spend.
Coins held in P2PK outputs have had their public keys visible on the blockchain since 2009. Analysis by Bitcoin developers (cited in discussions on the bitcoin-dev mailing list) suggests that a substantial share of the earliest-mined coins remain in P2PK format. Whether and how those coins could be protected in a quantum future is an open question.
Can Post-Quantum Cryptography Secure Bitcoin?
Post-quantum signature algorithms exist that could replace ECDSA in Bitcoin transactions, but adopting one is a protocol-coordination challenge, not a missing-technology problem.
The two candidates differ on a specific axis that matters for Bitcoin:
- ML-DSA offers faster verification and smaller signatures (roughly 2,420 bytes at the ML-DSA-44 parameter set). Its security depends on the hardness of lattice problems. Proposal authors who prioritize block-space efficiency tend to favor it.
- SLH-DSA offers the most conservative security assumption, depending only on hash functions rather than lattice structures. Its signatures are larger (roughly 7,856 bytes for SLH-DSA-128s), which makes it more expensive per transaction but less likely to be undermined by future mathematical breakthroughs.
No consensus choice exists yet. The decision will turn on how the Bitcoin community weighs signature size against assumption-minimalism, and on whether hybrid schemes (using both classical and post-quantum signatures) prove workable within block-space constraints.
The broader challenge is cryptographic migration: swapping one algorithm for another inside a live system. Banks and government agencies have been running such migrations for years. Bitcoin faces a particularly slow and contested version because every change to the consensus rules requires broad agreement among everyone who runs the software and the miners who build on it. No single entity can push an update.
How Bitcoin Could Migrate to Post-Quantum Cryptography
The most concrete migration proposal is BIP 360, which defines a new output type called Pay-to-Quantum-Resistant-Hash (P2QRH). It remains an unactivated proposal under discussion, not an adopted or scheduled change.
A post-quantum upgrade for Bitcoin would likely follow these steps:
- A Bitcoin Improvement Proposal (BIP) is drafted and reviewed. A BIP is the formal governance mechanism for protocol changes. BIP 360 is one such proposal, specifying how a new address type would commit to a post-quantum signature.
- Developer consensus forms around a specific signature scheme (ML-DSA, SLH-DSA, or a combination) and its parameter set.
- A soft fork is proposed and activated. A soft fork allows new rules to be added without breaking backward compatibility. Nodes that do not upgrade still accept the new transactions as valid under their existing rules.
- Users voluntarily migrate coins from old address types to the new quantum-resistant output type. This migration could take years, and coins in legacy P2PK outputs would need their own solution.
Post-quantum signatures are orders of magnitude larger than ECDSA's 71 to 72 bytes. That directly conflicts with Bitcoin's fixed block-weight limits and raises questions about fee economics and network throughput. The migration of old coins, especially P2PK outputs that cannot be spent without exposing a vulnerable public key, adds further complexity. These are open trade-offs with no settled answers.
How Soon Is the Quantum Threat to Bitcoin?
No existing quantum computer comes close to the scale needed to break Bitcoin's signatures, and credible estimates for that milestone range from roughly a decade to several decades. Quantum computers operate using qubits, which can represent multiple states simultaneously, but each qubit is fragile. Errors caused by environmental interference (decoherence) mean that a large number of physical qubits are needed to produce a single reliable logical qubit through error correction.
A 2022 paper by researchers at the University of Sussex (Webber et al.) estimated that breaking a 256-bit elliptic-curve key would require on the order of hundreds of millions of physical qubits operating with low error rates. Announced processor sizes from IBM and Atom Computing sat in the 1,000 to 1,500-qubit range in late 2024 and early 2025, and these are noisy processors, not fault-tolerant ones. The gap between current hardware and the scale required is measured in orders of magnitude.
The so-called "Q-day," a popular term for the moment a quantum computer first breaks widely used public-key cryptography, is not a date anyone can pin down with confidence. Headlines that treat it as imminent are not supported by published hardware roadmaps.
For Bitcoin, the harvest-now, decrypt-later risk takes a specific form: public keys already on-chain, especially in P2PK outputs, are permanently recorded. Even if a quantum computer capable of deriving private keys is decades away, those keys cannot be un-exposed.
What Bitcoin Holders Can Do Today
No action is urgent today, but a few low-cost practices reduce your exposure if a capable quantum computer arrives during the time you hold.
- Stop reusing addresses. Use a fresh receiving address for every transaction. Most modern wallets generate new addresses automatically from your seed phrase.
- Check whether you hold coins in P2PK outputs. If you have been using Bitcoin since before 2012, or if you received coins to a raw public-key output, consider moving them to a modern P2PKH or P2WPKH address. This hides your public key behind a hash until you spend.
- Avoid leaving large balances at addresses you have already spent from. If you sent a transaction from an address and still hold funds there, your public key is already on the blockchain.
- Track protocol proposals actively. Subscribe to the bitcoin-dev mailing list or watch the BIP repository for pull requests related to quantum resistance. Check the status of BIP 360 periodically. The transition, when it comes, will require deliberate action from holders.
- Track wallet support for post-quantum signatures. Using a new signature scheme on Bitcoin requires both protocol support and a wallet that implements it.
The conditions that would make this more urgent: a demonstrated break of an elliptic-curve key at any parameter size, or a credible announcement of a fault-tolerant quantum computer with the qubit count and error rates the published research says are needed. Neither has happened.
Frequently Asked Questions
What is post quantum cryptography in one sentence?
Post quantum cryptography is a set of algorithms built on math problems that neither classical nor quantum computers can solve efficiently, deployed as ordinary software on standard hardware.
Is Bitcoin quantum safe right now?
Not fully. Bitcoin's ECDSA signatures are mathematically vulnerable to Shor's algorithm on a future fault-tolerant quantum computer. Its SHA-256 hashing retains roughly 128-bit effective security under Grover's algorithm, which remains adequate. The threat is structural but not immediate.
What are the three NIST post quantum cryptography algorithms?
The three standards finalized in August 2024 are ML-KEM (FIPS 203) for key encapsulation, ML-DSA (FIPS 204) for lattice-based digital signatures, and SLH-DSA (FIPS 205) for hash-based digital signatures.
Can a quantum computer break Bitcoin today?
No. No existing quantum computer has enough qubits or low enough error rates to run Shor's algorithm against Bitcoin's secp256k1 curve. Current machines are several orders of magnitude too small, and they are noisy rather than fault-tolerant.
Should I move my bitcoin because of quantum computing?
For most holders, the answer is not yet. The practical steps are to stop reusing addresses, move any coins held in legacy P2PK outputs to modern address types, and track protocol developments. A large-scale emergency migration is not warranted by the current state of quantum hardware.
Are there post quantum cryptography stocks I can invest in?
This article covers the cryptographic technology and its application to Bitcoin, not securities or investment opportunities. Companies working on quantum computing and post-quantum security exist across the technology sector, but evaluating them as investments falls outside the scope of this guide.
Conclusion
Post-quantum cryptography gives the broader technology ecosystem a tested set of algorithms, and Bitcoin's developers have drafted proposals, none of them activated, to bring those protections to the protocol. The NIST standards (ML-KEM, ML-DSA, SLH-DSA) are finalized. The quantum hardware capable of threatening elliptic-curve signatures does not yet exist, and credible estimates place it years to decades away.
Bitcoin's real exposure is specific, not universal: ECDSA signatures are the vulnerable layer, SHA-256 hashing is not, and the risk varies by address type. If you hold coins at addresses where the public key has never been revealed, your near-term exposure is low. If you hold coins in P2PK outputs or at reused addresses, the risk is higher, and moving those coins to fresh addresses is a reasonable precaution. The conditions that would require broader action are observable: watch for demonstrated breaks of elliptic-curve keys at any size, for fault-tolerant quantum hardware announcements backed by peer-reviewed benchmarks, and for activated protocol upgrades that enable quantum-resistant address types on Bitcoin.
Related reading
On Bybit, you can follow the live Bitcoin price, the BTC/USDT spot market, and the BTCUSDT perpetual market.
For the protocol debate, see Bitcoin quantum resistance and the BIP 360 and BIP 361 proposals. For market context, see how quantum fears fit into the Bitcoin sell-off.