Back to stories

AI may never crack a Bitcoin key, even if it proves P = NP

AI may never crack a Bitcoin key, even if it proves P = NP
A proof that P = NP would not hand anyone a working way to break Bitcoin keys, and Polymarket's odds on such an AI proof have already fallen to 7%.
Global HighlightsBlockchainBy Editorial Desk4 min read

Even if an AI lab proved that P equals NP, it would not automatically give anyone a practical way to break a Bitcoin key. The two questions are linked in theory, but a proof is not a working tool, and the fastest known attack on a full-size key could still take millions of years on real hardware.

Social media has filled with claims that AI labs have secretly broken cryptography, and that an announcement that P = NP is coming and Bitcoin is doomed. The maths does not support that leap. P versus NP asks how the work needed to solve a problem grows as the input gets larger. P covers problems a classical computer can solve quickly in that scaling sense; NP covers problems where a computer can quickly check a short proof of a yes answer.

The phrase "as easy to solve as to check" is where much of the confusion starts. It means both tasks can be done in polynomial time, an upper bound on how work grows with input length. The two polynomials can be wildly different: checking might take n squared steps and finding n to the tenth power. At a key size of 256 and a billion steps a second, checking takes about 66 microseconds and finding about 38 million years.

If P = NP, Scott Aaronson explains that it would rule out one-way functions in their standard theoretical sense, meaning functions designed to be easy to compute and hard to reverse. Even then, a proof might yield no usable algorithm, and any algorithm it produced could still be too slow at Bitcoin's actual key size.

If the reverse is proved, P ≠ NP, some efficiently checkable problems would have no deterministic classical algorithm that works on every input. That would still leave open how hard a typical Bitcoin key is to recover, and what a valid block costs to find. It would not prove Bitcoin is quantum-resistant: that depends on whether a quantum computer can run Peter Shor's discrete-logarithm algorithm at the required scale. A recent study by Ryan Babbush and co-authors modelled a 256-bit elliptic-curve computation in minutes with fewer than 500,000 physical qubits, under assumptions about planar superconducting hardware and a 0.1% physical error rate.

Polymarket runs a year-end bet on whether an eligible AI lab announces a complete solution. Its rules require the announcement by 11:59 p.m. ET on Dec. 31, 2026, or 4:59 a.m. GMT on Jan. 1, 2027, presented as work by the lab, its researchers or its models; joint work can count. The rules leave the direction of the proof open and waive further confirmation from Clay or any other organisation. The market showed 13% for Yes at 20:29 GMT on Nov. 27, with a 12.5¢ bid and 12.6¢ ask, then 7% on Nov. 28, with a 7.0¢ bid and 7.1¢ ask at 10:01 GMT. It prices the chance of a qualifying announcement, not a practical break of Bitcoin signatures or a mining advantage.

A neighbouring bet shows why the announcement matters. Anthropic mathematician Levent Alpöge released a proof of the Riemann Hypothesis on Nov. 20 and credited Claude; on Nov. 21, the Lean FRO and Mathlib Initiative said independent checks had verified the theorem statement and its proof. Six days later, the separate Riemann contract was still accepting orders at 20:29 GMT on Nov. 27, leaving the reason for the timing unresolved.

For Bitcoin holders, the practical test is whether anyone can produce a valid signature for a full-size key without the owner's secret. A useful report would name the signature scheme and hardware, give elapsed time and memory use, and show how often it worked across independently generated keys. Bitcoin's traditional ECDSA and Taproot's Schnorr signatures both use the secp256k1 curve. A Taproot payment exposes its public output key in the transaction that creates it, so a capability could matter for as long as that payment sits unspent; a fresh pay-to-witness-public-key-hash payment shows only a hash until the owner spends.

On mining, a credible result would report repeated trials on fresh block templates against named models of specialised mining hardware, known as ASICs, at the same target, with energy and total cost per expected accepted block. Bitcoin nodes still independently check transactions against the network's spending rules.

Related topics & keywords

  • #blockchain
  • #bitcoin
  • #cryptography
  • #artificial intelligence
  • #prediction markets

Related Stories

View all news →