Research
Timechain
Search Donate
Sponsors
Cake Wallet, private Bitcoin and Monero walletSideShift.ai, no-signup crypto exchangeOrangeRock, non-custodial bitcoin spot and perps tradingBraiins Hashpower, buy and sell Bitcoin hashrateeCash.com

What P=NP Means for Bitcoin

29 Nov 2026 · by Vlad Costea · 15 min read
Bitcoin Takeover cover: a Pepe character facing a giant "P≠NP" equation while a crack runs through a padlock and the Bitcoin logo

P=NP is the only open question in mathematics whose answer could empty every bitcoin wallet, every bank login and every encrypted message on the planet in the same afternoon. It has been open for 55 years, and the people best placed to answer it are now silicon rather than human. Here's what it would actually break, why it's much worse than a quantum computer, how to prepare, and some estimated numbers concerning impact.

Warning: This article is an analysis based on data available in November 2026. We are living crazy unprecedented times and the situation can change much faster than estimated. This isn't a pitch and definitely not financial advice.

In recent months, I've been hearing this question at some recent technical conferences and among cryptographers on Twitter/X... and it always makes people uncomfortable:** what happens if one of the frontier AI models proves that P equals NP?**

It can be temporarily get dismissed as ”FUD”, but there is a lot of merit to it in the era when AI trains itself to achieve exponential results. The progress we have seen this past year alone is immense, and the work that AI agents can do in terms of solving complex math problems has surpassed the area where ignorance is acceptable.
So if a powerful AI proves P=NP, would Satoshi's coins start moving? Does the hash rate become irrelevant? Should we all convert to gold and cash, buy a safe and pretend it's 1933?

The nervous laugh is justified, because unlike most crypto doomerism, this one is not a hallucinated fantasy. In 2000 the Clay Mathematics Institute put a 1 million USD bounty on P versus NP, alongside six other problems that mathematicians had failed to solve for a century. It's the most consequential unsolved problem in computer science, the answer would rewrite the economics of every lock on the internet, and the machines we spent the last three years teaching to do mathematics are now pointed loosely in its direction.

The rest of this article answers the question without the moon math: what P=NP actually means, why it differs from the quantum threat everyone else writes about, what it does to a long-term holding. How do we prepare for a future in which cryptography is rekt? (spoiler: not by buying a different coin)

What are the real odds to prove that P=NP with numbers for 2026 and beyond? Are altcoins such as Ethereum, Zcash, Monero, Litecoin, Bitcoin Cash, Kaspa, Quai, Zano or Solana any more likely to survive such an existential threat? Second spoiler: not really, but they all have pros and cons in terms of adaptability.

p=np would crack the public key cryptography of most cryptocurrencies, with small specific differences that eventually lead to the same result

What P=NP actually says

P is the set of problems a computer can solve quickly. NP is the set of problems where a proposed answer can be checked quickly. "Quickly" means in polynomial time, which is the mathematician's way of saying that the work grows manageably with the size of the problem instead of exploding.

Encryption is built on the gap between those two sets. It's easy to multiply two large primes together and hard to factor the result. It's easy to sign a message with a private key and hard to recover that key from the public one. It's easy to check that a block hash is below the target and well, you know the other half. Locks that close easily and open with difficulty are the entire foundation of digital commerce.

P=NP is the claim that the gap doesn't exist. If it's quick to check an answer, it would also be quick to find one. Every lock on the internet would open with the same ease as it closes.

Cook formalized the problem in 1971, though it was posed in 1956. Five and a half decades of the best efforts in the field have produced exactly one consensus: nobody knows, and the tools we have can't even prove which direction is unreachable. There are three famous barriers: **relativization, natural proofs and algebrization. **Each of them rules out whole families of proof techniques. Arguably, that's the most important thing to understand about the odds below: the field is not slowly closing in. It is blocked.

Why P=NP would crack Bitcoin's cryptography

A one-way function is a mathematical operation that's cheap in one direction and expensive in reverse. Every signature scheme in cryptocurrency is one of these with a secret door in it, and the door is the private key.

Inverting a one-way function is a search problem where checking is trivial: given a public key, does this candidate private key match? That question is in NP. So if P=NP, the search becomes fast, and the secret door stops mattering. On secp256k1, the curve Bitcoin uses for ECDSA and Schnorr, an attacker with a working algorithm derives your private key from your public key and sweeps the coins. No hardware, no special room, no 4 billion USD of equipment. A laptop, and a weekend.

It doesn't stop at signatures. SHA-256 loses preimage resistance, so hash-based signature schemes fall too. Bulletproofs, Mimblewimble, ring signatures and zero-knowledge proofs all rest on the same assumption, so confidentiality dies alongside ownership, and a shielded-pool counterfeiter could inflate supply invisibly. Airbnb-grade encryption, TLS, PGP, the lot: same afternoon, same laptop.

Then there's mining, which almost nobody mentions. Proof of work is the search for a hash below a target, and verification is a single hash. It's in NP too. Under P=NP, blocks become nearly free to find, difficulty has to climb by orders of magnitude, and the cost of a 51% attack collapses toward the cost of electricity. Every security-budget argument Paul Sztorc makes, the whole "fees must replace the subsidy or the chain dies" line of reasoning, quietly stops mattering. Because the security was never the coins, it was the joules.

One caveat that matters enormously in practice: P=NP is a statement about existence, not about speed. The polynomial could be n^100. A verified proof might give the world an algorithm slower than brute force at Bitcoin's key size. So the event that would actually hurt you is not a proof. It's a practical gadget: a heuristic that inverts secp256k1 public keys in seconds, provable or not, published with working code.

And this is where the AI models come in. Frontier systems are already producing novel mathematics: formalized proofs in Lean, results on long-open Erdős problems, contributions that human referees now take seriously. The realistic risk isn't that a model wakes up and writes a clean proof of P=NP. It's that a model finds a strange, unprovable, working shortcut through a lattice or an isogeny or something nobody has thought to try... and that this shortcut leaks into a GitHub repository before anybody can evaluate it. Arguably, we should be far more worried about the gadget than about the theorem.

The difference between P=NP and a quantum computer

People conflate the two constantly, and they shouldn't. Because one of them is survivable and the other is not.

Quantum is narrow. Shor's algorithm (after Peter Shor, 1994) solves integer factorization and discrete logarithms, which means RSA, ECDSA, Schnorr and Diffie-Hellman all fall. But Shor does not touch symmetric cryptography, and Grover's algorithm only gives a quadratic speedup against hashes: a doubling of the work, not an annihilation of it. So a quantum attacker breaks your signatures while leaving SHA-256, and therefore mining, intact.

That distinction is the whole reason a quantum event is migratable. Bitcoin could hard fork to hash-based one-time signatures (Lamport, Winternitz, or something SPHINCS+-shaped), and the chain would keep producing blocks while wallets re-keyed. NIST already standardized post-quantum schemes in 2024. There's a destination.

P=NP has no destination. There is no "post-P=NP algorithm", because the thing that broke is the reason algorithms are hard in the first place. Hash-based signatures fall with everything else, so the quantum migration path is itself a casualty. Mining falls. Confidentiality falls. And unlike quantum, P=NP doesn't need a cryostat, a fab or a roadmap: a proof, or a gadget, runs on the machine you already own. Quantum has a hardware timeline and current credible estimates put a cryptographically relevant machine somewhere between 2027 and 2035. P=NP has no hardware gate at all.

The practical upshot is that quantum is a slow car crash with an airbag, and P=NP is a sinkhole.

What it means for a long-term holding

The uncomfortable part is that the classic bitcoiner posture (move coins into self-custody, HODL forever) is exactly the exposed position.

An address whose public key is already on chain is a solved problem the second the algorithm exists. Coins sitting in P2PK outputs have had their public keys exposed since 2009; that includes a large share of the roughly 1.1 million coins attributed to Satoshi, which makes them the first thing any attacker runs. Address reuse does the same job for everyone else. "Never move your coins" is a security practice that assumes a threat model where nobody can compute your key. P=NP retires that model.

Custody flips from liability to temporary asset. An exchange can halt withdrawals, re-key every customer into fresh addresses and reopen. On a self-custody setup, nobody can do that for you, and a deep-cold-storage stack you can't reach in a day becomes a museum piece. Interestingly, the safest position during the first 48 hours is probably the one bitcoiners spent a decade sneering at.

It's also worth noting that a chain doesn't just die. It forks. The real question is whether you still control your coins at the moment the fork activates, and that comes down to whether anything is left of the old key material... which is exactly why the timechain needs to re-key before it needs to, not after.

How to prepare for P=NP

Assume no algorithm will save you, and optimize for agility. Bitcoin has activated soft forks at 26 and 40 month intervals; that timeline is the single biggest liability in this scenario, and no hardware purchase fixes it. What you can do:

Stop reusing addresses. A fresh P2WPKH address keeps your public key off-chain until you spend. Every coin in a reused address is already visible.

Split. One key holding everything is one successful inversion away from zero. Many keys, many locations, smaller balances.

Keep a fast reserve. A hot or warm wallet capable of signing in minutes, holding what you'd want to move early, separate from the deep stack.

Multisig with geographically separate signers, so a single compromised location isn't a single compromised stack.

Keep a watch-only copy of your xpubs somewhere you can check quickly, on a machine that isn't the signing machine.

Write down the plan for the people who'd have to execute it, including the ones who don't care about Bitcoin.

Push for crypto agility. An actual BIP for a hash-based signature scheme and a coordinated re-keying snapshot would be worth more than any of the above.

What to watch: anyone inverting secp256k1 public keys at scale, proof-of-concept or otherwise; formalizations of the three barriers in Lean (progress there is the real signal, not a headline); and arXiv claims. Most claimed proofs of P=NP collapse within a week, and panicking on the first one is a reliable way to lose money to someone else's typo.

The P=NP odds: Everything gets broken by 2050?

Below, you will find a model. Not a forecast, not a market, but a model with assumptions with which you can argue. By the way, you totally should argue with this model and/or try to come up with a better one as soon as more data becomes available.

The base rate is brutal: the question has been in the open for 55 years, with no resolution. That alone gives about 1.8% per year, and a well-calibrated prior should start there. Then apply the AI acceleration. Frontier capability on formal mathematics has been compounding fast enough to justify roughly doubling the early-year figures, and to keep them rising as models get cheaper. Then apply the ceiling: the three barriers mean most of what models are good at doesn't reach the core of the problem, which is why the curve flattens rather than runs away.

Year Any resolution that year Cumulative, any resolution Of which P=NP Cumulative P=NP
2026 (one month left) 1% 1% 20% of resolutions 0.2%
2027 2.5% 3.5% 20% 0.7%
2028 3.5% 6.9% 20% 1.4%
2029 4.5% 11.1% 20% 2.2%
2030 5.5% 16.0% 20% 3.2%
2035 6.5% per year 40% 20% 8%
2050 4–5% per year ~70% 20% ~14%

Two things to read out of the table above. First, most resolutions are the harmless direction: expert consensus puts P≠NP at roughly 80 to 85%, and a proof that P≠NP would be the best news cryptography ever got. Only about one resolution in five is the sinkhole. Second, the odds of being hurt by a practical gadget are materially higher than the odds of a proof, because a gadget needs no referee and no peer review. Call it two to three times the proof odds: roughly 5 to 7% cumulative by 2030, and most of that risk concentrated in the unglamorous "someone posted working code" case.

For scale, the Bitcoin industry currently prices a cryptographically relevant quantum computer, on the same horizon, as a much bigger threat than 3%. Arguably we've got the two risks ranked upside down.

Would any altcoin survive P=NP better than Bitcoin?

The honest answer is that no chain has a P=NP plan, because there's nothing to plan around. Every one of these networks rests on the same primitives, and the primitives are what break. The differences are all second-order: fork cadence, whether a transparent fallback exists, how fast a mass sweep can clear, and whether a proof-of-stake layer adds or removes exposure. But those second-order differences are real, so here they are, with verdicts.

Ethereum is the worst-positioned of the nine, and not primarily because of its cryptography. ECDSA secp256k1 gives the same key-derivation exposure as Bitcoin, BLS signatures give the same problem for the validator set, and Keccak gives nothing back. What makes it worse is surface area: the account model means there's no UTXO-level set of coins to sweep, and years of token approvals mean an attacker with your key doesn't even need to move your ETH... the approvals already move everything else. Roughly a quarter of supply sits staked behind BLS keys. The one thing Ethereum does better is coordination: it has executed an emergency hard fork under pressure before, the DAO precedent exists, and the Foundation can fund cryptography work at a scale nobody else can. Verdict: more damage, more capacity to recover.

Zcash carries the most cryptography per coin, which is both the strength and the problem. Halo 2, Groth16, BLS12-381 pairings, Jubjub, Equihash for proof of work: pairings are the most brittle of the primitives in play, and the shielded pools are where the value concentrates. Under P=NP an attacker recovers spending keys, deanonymises the pools and can potentially mint counterfeit shielded ZEC undetectably in pools such as Sapling and Orchard, because a forged note is indistinguishable from a real one. Against that, Zcash has the only real transparent fallback of the nine (the transparent pool keeps working as a plain UTXO chain) and, arguably, the most capable cryptography team in the industry, consisting of the same people who found and fixed the Orchard bug. Verdict: the highest worst-case damage and the highest recovery capability. Hear it from Daira-Emma Hopwood in S17 E50.

Monero is the worst-positioned on privacy, and it has no fallback at all. Ring signatures, RingCT, Bulletproofs and Pedersen commitments sit on Curve25519 discrete logs, and because privacy is mandatory rather than optional, the moment it breaks the entire ledger becomes a public spreadsheet with a visible history. Pedersen commitments then let a counterfeiter inflate supply without anyone noticing. RandomX is CPU-mined and the chain's dollar value is low, so the collapse of mining costs is less of a shock than it would be on a SHA-256 chain. But there's nothing to retreat to. Riccardo Spagni made the case for mandatory privacy in S17 E8; but under P=NP, mandatory privacy is mandatory exposure.

Litecoin uses Bitcoin's cryptography with a different hash function. Scrypt for proof of work, secp256k1 for signatures, MWEB for optional confidentiality: MWEB falls, and the transparent chain is exactly as exposed as Bitcoin, no more and no less. There's no novel primitive and no novel defensibility. The only edge is that Scrypt ASICs are a smaller, more hobbyist scene, so a mining-cost collapse is less of a dollar catastrophe. Verdict: Litecoin shares Bitcoin's odds, to the decimal.

Bitcoin Cash is the most interesting case, because its cryptography is literally Bitcoin's: ECDSA, SHA-256, no SegWit, no Taproot... yet it has one genuine structural advantage. BCH hard forks every six months as a matter of routine, so swapping in a new signature scheme is a scheduled upgrade rather than a two-year war of attrition. Add a big-block culture, and a mass re-key sweep fits into a couple of blocks instead of filling the mempool for a week. Calin Culianu and Steve Thurmond spent eight hours on this in S17 E26; the fork cadence they described is the asset. Verdict: identical exposure, marginally better agility.

Kaspa uses kHeavyHash for proof of work and Schnorr over secp256k1 for signatures, so the key-derivation exposure is Bitcoin's exactly. What it has instead is throughput: at ten blocks per second, the race where everybody tries to sweep at once finishes in a fraction of the time it would take on a ten-minute chain. There's no post-quantum anything and no smart contracts yet, though KIP-20 covenants are coming and will widen the surface. Michael Sutton walked through the engineering in S17 E52. Verdict: better than Bitcoin on sweep speed, identical on cryptography.

Quai is a sharded proof-of-work network with a UTXO and account hybrid, KawPoW lineage and ECDSA signatures. Proof of work means the "blocks are now free" shock at least lands on a chain whose security model already assumed hashing, and sharding spreads the load of a mass sweep across chains instead of one mempool. But the cryptography is off-the-shelf ECDSA, the team is small, and there's no confidential layer to worry about because there's no confidential layer. Verdict: roughly Bitcoin's odds, with a coordination problem instead of a cryptography problem.

Zano is a CryptoNote descendant with hybrid proof of work and proof of stake, Zarcanum confidential proof of stake and confidential assets. Everything rests on Curve25519 discrete logs, the proof-of-stake layer adds signatures that fall with the rest, and confidential assets mean a counterfeiter can inflate any issued asset invisibly. The hybrid design helps with long-range attacks and does nothing at all here. Andrey Sabelnikov and Pavel Nikienkov explained the consensus in S15 E60. Verdict: worse than Bitcoin on P=NP day.

Solana uses Ed25519, PoH hash chains, TowerBFT and 400-millisecond slots. Ed25519 is the same discrete-log class as everything else, so keys fall; the PoH chain is SHA-256 and falls with the hashes. What Solana has is the highest raw throughput of the nine, which shortens the sweep race dramatically. But it also lets an attacker drain faster, so it cuts both ways. Vote transactions, program authorities and upgrade keys all sit on Ed25519 with no post-quantum hedge. Verdict: better on throughput, worse on surface area, identical on cryptography.

What none of them fix

The nine chains presented in this article have very similar verdicts, and a spread of maybe two percentage points between the best and the worst. That's the real finding: against P=NP, coin selection is a rounding error next to how you hold... and no chain is better than "slightly less bad".

Which means the useful work isn't happening in any of these ecosystems. It's happening in the boring places: a signature-scheme BIP nobody wants to review, a re-keying plan nobody has written, a hardware wallet that can sign in ninety seconds instead of nine minutes. Bitcoin's culture of doing nothing is a genuine virtue against fashion, and its single biggest liability against mathematics. The one thing it has going for it is the thing that produced every coin in this article: it forks.

You can read the case for P≠NP at the Clay Institute, and the three barriers in any complexity textbook. Both are better uses of an evening than watching the price chart... which has been disappointing this year, to say the least.

So the adds for proving P=NP are 3% by 2030 for the sinkhole, roughly double that for the gadget. Is that low enough to keep doing nothing?

Share: X · Email · Link

Comments

Questions or corrections? Email me, or say it on Nostr or X. I read all three.

0:000:00