← Back to Blog

Change the Locks: The Mathematics Behind the Post-Quantum Warning, and What Bitcoin Has to Do

Change the Locks: The Mathematics Behind the Post-Quantum Warning, and What Bitcoin Has to Do
In this article

On Wednesday 2 December three US agencies published a joint statement about cryptography, and within hours eight companies answered with one of their own, which OpenAI’s post alone has been seen four million times: Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI and Oracle asked organisations to move to post-quantum cryptography, the encryption designed to survive quantum computers, and to “accelerate the migration as soon as possible”. By Thursday morning Bitcoin had lost about a tenth of its value.

Reading the headlines you would think a quantum computer had been switched on somewhere, or that an AI had broken encryption. Neither happened. I read the statements, the four papers that set this off and what the cryptographers who reviewed them wrote, and the story is stranger and, I think, more interesting. The warning comes from a piece of mathematics, produced by a machine, about the new locks, the ones everybody is now being told to install faster.

This article explains where the worry comes from, with the mathematics kept in plain words, and then what it means for Bitcoin, which fell hardest and is, oddly, the one system those papers do not touch.

What was actually said

Four things happened in seventeen days, and only the last two made the news.

16 Nov Results shared with cryptographers 30 Nov Four papers published reviewers: “galactic” 2 Dec Government and 8 companies ask to migrate faster 3 Dec Bitcoin falls about 10%
The mathematics was public for two days before the statements. The market reacted to the statements.

On 16 November Anthropic privately showed a group of cryptographers a set of results about lattices, the mathematics underneath the new encryption standards. On 30 November it published them: four papers, with their proofs checked by computer in Lean, a language for writing proofs a machine can verify. The repository says the results “were discovered by an internal research Claude model”. The same day the cryptographers, writing as the Cryptography Incident Review Group (CIRG), published their assessment.

Two days later came the government statement, signed by the Office of the National Cyber Director, the National Security Agency and the Cybersecurity and Infrastructure Security Agency. It is short and names no company and no paper. It says that frontier AI models have “demonstrated the capability to solve some of the most complex and previously unsolved problems in the field of mathematics”, that AI companies “have disclosed discoveries that impact the security of some cryptography currently in use”, and that these advances “do not present an immediate and widespread threat to that cryptography”. Then it asks industry and government to upgrade “expeditiously”.

The companies’ statement is two sentences long. This is all of it, as OpenAI posted it:

OpenAI's post on X with the joint statement of Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI and Oracle on the transition to post-quantum cryptography, 3 December 2026

Notice what the stated reason is. The word “quantum” appears once, in the name of the transition the government was already running. The reason given for hurrying is that machines are now doing mathematics.

Every lock is a maths problem nobody has solved

The encryption that protects a bank transfer or a chat message rests on a problem that is easy in one direction and, as far as anyone knows, hopeless in the other.

The classic example is multiplication. Give me two prime numbers of 300 digits each and I multiply them in a blink. Give me the 600-digit product and ask for the two primes, and the best method known would take longer than the age of the universe. That gap is RSA, from 1977: the product is the public key, the primes are the private one.

The other workhorse is the elliptic curve. There the easy direction is “start at a point on a curve and take a secret number of steps”, and the hard one is “here are the start and the end: how many steps?”. It does the same job as RSA with much smaller keys, which is why it secures most web connections and every Bitcoin transaction.

RSA: multiply 61 53 × 3233 easy hard easy: one multiplication hard: which two primes? with 300-digit primes, longer than the age of the universe Elliptic curve: hop G kG easy: start at G, take k hops hard: given G and the end, find k
The two locks in everyday use. Each is a calculation that is quick forwards and, as far as anyone knows, hopeless backwards. The curve drawn is the shape of Bitcoin's, y² = x³ + 7; the real one lives on whole numbers and looks like scattered dots.

The uncomfortable part is in the phrase “as far as anyone knows”. Nobody has proved that factoring is hard, or that counting steps on a curve is. A proof would settle P versus NP, the most famous open question in computer science, and we are nowhere near. What we have is evidence of a particular kind: very good people have attacked these problems for decades and failed.

That kind of evidence can evaporate. In October I wrote about the exponential time hypothesis, a 27-year-old assumption that hundreds of results were built on, and which fell twice in one day to algorithms found with AI. Cryptography lives on assumptions of exactly that sort.

The first crack: a quantum computer, in 1994

For RSA and elliptic curves the bad news is thirty years old. In 1994 Peter Shor found an algorithm that solves both problems quickly on a quantum computer.

The idea can be said in a paragraph. Take a number aa and look at its powers, a,a2,a3,…a, a^2, a^3, \dots, keeping only the remainder after dividing by the number NN you want to factor. The remainders eventually repeat, in a cycle. The length of that cycle gives away the factors of NN. Finding the length by ordinary computation is as hard as factoring. A quantum computer can put all the powers in superposition at once and make them interfere so that the cycle length is what survives, the way a prism separates a note from noise. Counting steps on an elliptic curve hides a cycle of the same kind, so the same algorithm breaks it.

The smallest example shows the whole mechanism. To factor 15, take the powers of 7: their remainders run 1, 7, 4, 13 and then start again.

powers of 7, remainder after dividing by 15 1 0 7 1 4 2 13 3 1 4 7 5 4 6 13 7 1 8 7 9 4 10 13 11 1 12 7 13 4 14 13 15 cycle of length 4 exponent what the quantum computer measures after interference 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 the spacing gives the cycle outcome
Factoring 15 the quantum way. The remainders repeat every 4 steps; interference cancels every outcome except the evenly spaced ones, and their spacing gives away the 4. Then 7² − 1 = 48 and 7² + 1 = 50 share the factors 3 and 5 with 15.

No machine that anyone has shown can run Shor’s algorithm at the sizes that matter. But a secret does not have to be read today to be lost: an adversary can record encrypted traffic now and decrypt it when the machine exists. Cryptographers call it harvest now, decrypt later.

So in 2016 the US standards body, NIST, opened a competition for replacements, and in August 2024 it published three: ML-KEM for agreeing on keys, and ML-DSA and SLH-DSA for signatures. The first two rest on lattices.

The new locks: a secret hidden under noise

The lattice problem is school algebra with a little dirt thrown in. Suppose I pick two secret numbers and give you three equations about them, working with remainders modulo 17:

2s1+7s2=75s1+s2=34s1+9s2=6(mod17)2s_1 + 7s_2 = 7 \qquad 5s_1 + s_2 = 3 \qquad 4s_1 + 9s_2 = 6 \pmod{17}

You solve this as you did at fifteen and find s1=3s_1 = 3, s2=5s_2 = 5. Now I add a small error to each right-hand side, +1+1, −1-1 or 00, and give you 88, 22 and 66 instead. Nothing fits exactly any more. You have to find the secret that almost fits. With two unknowns you can try everything. With several hundred, every method known takes a time that grows exponentially.

This is learning with errors, introduced by Oded Regev in 2005. The geometric picture explains the name “lattice”: the exact solutions form a regular grid of points in a space with hundreds of dimensions, the noisy data is a point slightly off the grid, and the task is to find the grid point nearest to it.

noisy data the secret 2 dimensions you see the nearest point ML-KEM-768 768 dimensions same question: which grid point is nearest? best known methods: exponential time
Learning with errors as geometry. The exact solutions form a grid; the data you are given is a point just off it.

Used raw, these systems need keys of hundreds of kilobytes. So the standards add structure. In place of plain numbers, each unknown is a polynomial with 256 coefficients, and the arithmetic wraps around so that x256=−1x^{256} = -1. A handful of such polynomials replaces a huge table of numbers, and a public key shrinks to about one kilobyte (1,184 bytes for ML-KEM-768). These are structured or module lattices, and they have two dials: the degree nn of the polynomials, fixed at 256, and the number kk of polynomials, called the rank, which is 2, 3 or 4 depending on the security level.

Structure is symmetry, and symmetry is what an attacker looks for. That has always been the known price of the small keys.

What the machine found

The first of the four papers, Galactic quasi-polynomial quantum algorithms for integral and module lattices, gives a quantum algorithm that exploits exactly that symmetry. It runs to 283 pages. For module lattices of small rank it solves the standard hard problems, including the version of learning with errors used in the standards, in quasi-polynomial time: in the reviewers’ words, about npoly(k)⋅log⁡nn^{\mathrm{poly}(k)\cdot\log n} steps. Before this, the cost of every known attack grew exponentially with nn. Like Shor’s, it works by hunting for a hidden symmetry with quantum interference.

That sounds like the end of lattice cryptography. It is not, and the reason is the two dials.

256 512 1024 2048 2 3 4 polynomial degree n rank k ML-KEM-512 ML-KEM-768 ML-KEM-1024 the standards fix n = 256 and only move up new attack: cost grows slowly this way (quasi-polynomial in n) and explodes this way (k⁸ in the exponent)
The attack is fast along the dial the standards never turn. A stronger ML-KEM means a higher rank, and along the rank the cost is still exponential.

The new algorithm is cheap in one direction only. If you made a system stronger by increasing nn, it would cut through it. But the cost explodes with the rank: the machine-checked statement has k8k^8 in the exponent. And the standards get stronger precisely by raising kk and leaving nn at 256. As Cloudflare put it, along that route the algorithm “isn’t even really quasi-polynomial, but exponential”.

The numbers are hard to picture. The paper itself says that for ML-KEM-512, the smallest parameter set, one of its subroutines would have to work on lattices of dimension greater than 2104002^{10400}. The observable universe holds roughly 22662^{266} atoms. The CIRG reviewers estimate that even 210002^{1000} quantum operations “would be far below its cost”. The attacks already known, themselves far out of reach, are vastly cheaper. Hence the word in the title: a galactic algorithm is one that wins on paper only at sizes no computer will ever see.

Three more facts keep this in proportion:

  • Nothing classical changed. The reviewers report no improvement in attacks by ordinary computers on any mainstream lattice system.
  • Unstructured lattices came out stronger. The attack needs the polynomial structure. For plain lattices the other three papers tighten the theoretical foundations, which the reviewers call “meaningful evidence” for their security.
  • The standards’ authors agree. IBM Research, whose cryptographers co-designed both lattice standards, calls it “a significant advance in theoretical cryptanalysis” that does “not currently pose a practical threat to either standard”.

It is also the second result of this kind in five months. In July Anthropic reported that another of its models had found a symmetry nobody had exploited in HAWK, a candidate lattice signature scheme, cutting the expected cost of attacking its smallest version from 2642^{64} to 2382^{38}, in about sixty hours of work.

A joke that turned out to be a map

Four days before the papers came out, a chart went round X that explains the mood better than any statement. On 26 November a user called Binkg posted an “AI math discoveries by how fucked we are tier list”, with the caption “These are the proofs the labs aren’t publishing”. It was a joke about the rumours of that week. It has been seen more than a million times, and it is a rather good map.

WE'RE FUCKED Factoring Elliptic curves Bitcoin, TLS P = NP SHA-256 AES Quantum fix is broken Lattices attacked Code-based SHA-3 ChaCha20 Locks nobody uses Pairings (zk) Isogenies HAWK attacked Rewrite the textbooks Exponential Time Hypothesis ✓ this autumn Matrix multiplication Smale's 9th Unique Games One guy gets $1M Riemann ✓ this autumn Navier–Stokes ✓ this autumn Yang–Mills Hodge Birch & Swinnerton-Dyer Numberphile uploads a video VP ≠ VNP Collatz Goldbach Twin primes resolved, machine-checked proof attacked, not broken
The tier list posted by Binkg on X on 26 November, redrawn, with my marks for what has happened since September. The results have been moving up the chart.

Read it from the bottom. The lowest tier is the famous puzzles whose solution would change nothing outside mathematics (“Numberphile uploads a video”, after the YouTube channel). Above it, the million-dollar Millennium problems. Then the results that force textbooks to be rewritten, then the locks nobody uses, then the tier the chart calls “quantum fix is broken”, and at the top the locks everything runs on.

Now mark what has happened since September. I wrote about Navier–Stokes and the Riemann hypothesis, both in the million-dollar row, and about the exponential time hypothesis, in the textbook row. HAWK, dented in July, is in “locks nobody uses”. And lattices sit in “quantum fix is broken”, the row the papers of 30 November reached, with an attack that is real and galactically far from breaking anything.

Two things stand out. The results have been climbing, one row at a time. And the top row includes factoring and elliptic curves, the two public-key locks in everyday use, which need no new mathematics at all to fall: the algorithm has existed since 1994 and only the machine is missing.

So why hurry, if nothing is broken?

Here is the part that looks like a contradiction: an attack appears on the new locks, and the response is to install the new locks faster. I see four reasons, and they hold together.

The old locks are the ones in danger. A galactic attack on lattices does nothing for RSA or elliptic curves, which fall to Shor’s algorithm at a tiny fraction of that cost. The reviewers say it directly: delaying “would prolong reliance on existing systems that can be broken with far fewer quantum resources”.

Recorded traffic does not wait. Whatever is harvested this year is protected only by the old locks.

The evidence behind every lock just got weaker. This is the one I find most important, and it is what the government statement actually says. “People have tried for decades and failed” is strong evidence when the people are a few hundred specialists. It is weaker when a new kind of mathematician has arrived that reads everything, does not tire, and has now produced a 283-page result in a field where a human expert might publish a handful of papers a year. The reviewers expect the attack “will be improved in the near future” and say the open question is whether improvements reach the standards. Scott Aaronson, who works on quantum computing, wrote that he is “deeply uncomfortable with any cryptosystem whose security rests only on constant factors”.

Changing locks takes a decade. Cloudflare started in 2019 and says 73% of the human traffic it carries is now post-quantum encrypted. Most organisations have not begun to list where their keys are.

That is also why the cryptographers’ advice is more than “migrate”. They ask adopters to choose the highest security level they can afford, to combine an old lock and a new one so that both must fail (a hybrid), to build systems where a scheme can be swapped quickly, and they ask NIST to standardise more schemes built on different mathematics, “even at some cost in efficiency”.

I should be honest about what the public record does not explain. Cloudflare’s chief executive wrote that his company had been “briefed on something” and told people to assume anything using RSA or elliptic curves was affected. Nothing published supports that for elliptic curves. Jonas Nick, co-author of Bitcoin’s signature standard, called the evidence “very thin”, and the developer Jameson Lopp said of the warnings: “They aren’t actually saying anything concrete.” I only know what is public, and what is public is the mathematics above.

Bitcoin: a different lock, the same deadline

Bitcoin fell about 10% in a day, to around 53,500 dollars, with a low near 50,800, its lowest level since August 2024. Ether lost about 8%.

The lattice papers have nothing to do with it. Bitcoin uses no lattices: it signs transactions with elliptic curves (a curve called secp256k1) and protects addresses with the hash function SHA-256. The cryptographer Nadim Kobeissi pointed out that the result does not concern RSA and does not affect Bitcoin or Ethereum as they are deployed today.

But the fall pointed at something true. Bitcoin’s lock is the old kind, the kind Shor’s algorithm opens, and Bitcoin is worse placed than a bank to change it, for two reasons.

Its keys are public and stay public. A Bitcoin address is a fingerprint (a hash) of a public key, and the key itself appears on the ledger only when the coins are spent. Anyone who reuses an address, or holds coins in the oldest formats that published the key outright, has it exposed for good. Glassnode, an analytics firm, counted them in May: 6.04 million BTC, 30.2% of all coins issued. By October it was 31.2%.

6.04M BTC with a public key visible on the ledger (30.2%) exposed by design 1.92M BTC · 9.6% exposed by use 4.12M BTC · 20.6% key hidden while at rest 13.96M BTC · 69.8%
“Exposed by design” covers the earliest coins, which published the key outright, and Taproot. “Exposed by use” is address reuse: the key was revealed by an earlier spend. Source: Glassnode, May 2026.

Nobody can change the lock for you. A bank rotates its keys over a weekend. On a blockchain each owner has to move their own coins with their own key, and coins whose owners are dead, or lost the key, or are Satoshi Nakamoto, Bitcoin’s vanished creator, cannot move at all.

What cryptocurrencies would have to change

Three things, and the hard one is not technical.

First, stop exposing keys. BIP-360, a draft proposal, adds a new kind of address that removes the path by which the newest address format (Taproot) reveals its key. It is a compatible upgrade, a soft fork. Its authors are clear about its limit: it protects coins at rest, and it does not protect a transaction during the minutes between being broadcast and being confirmed, when the key is visible and the coins have not moved yet.

Second, new signatures, and they are big. A Bitcoin signature today is 64 bytes. The post-quantum ones are not.

Schnorr (Bitcoin today) 64 bytes ML-DSA-44 (lattices) 2,420 bytes · 38× SLH-DSA-128s (hashes) 7,856 bytes · 123×
Sizes from NIST FIPS 204 and FIPS 205. The lattice signature is the compact post-quantum option; the one that relies only on hash functions is three times larger again.

Every signature is stored by every node forever, and block space is what users bid for. Signatures forty times larger mean fewer transactions per block or bigger blocks, a fight Bitcoin has had before. There is an irony too: the compact option is the lattice family, the one whose long-term standing just took a knock, while the family that rests only on hash functions is the bulky one. Ethereum’s route is to let each account choose its own signature scheme (its researchers keep a task list of everything else that has to change), and Vitalik Buterin sketched in 2024 an emergency plan: roll back to before the theft, freeze ordinary accounts and let owners reclaim funds by proving they know the seed behind the key.

Third, a deadline for the coins that never move. BIP-361, also a draft, proposes one: about three years after activation the network would stop accepting payments to the vulnerable address types, and two years after that it would stop accepting the old signatures at all. Coins not migrated by then become unspendable unless their owner can prove ownership another way, and for the oldest format no such way is known. The alternative is to leave those coins, roughly a million of them attributed to Satoshi, for whoever builds the machine first. Freezing other people’s money or leaving it to a thief: that is a question about what Bitcoin is, and no algorithm answers it. Adam Back, one of its earliest contributors, argued in April for optional upgrades over a forced freeze.

None of these proposals has an activation date.

What to take from it

  • Nothing was broken this week. The new attack on lattices is real mathematics and, at the sizes in use, galactically out of reach. The statements say so themselves.
  • The warning is about the old locks and about time. RSA and elliptic curves are the ones a quantum computer opens cheaply, traffic is being recorded now, and replacing cryptography takes years.
  • What changed is who is doing the mathematics. Every lock is a conjecture supported by failed attempts, and there is a new and tireless source of attempts. I would expect more results like this one, and the sensible response is the one the cryptographers give: hybrids, the highest security level, and systems built so a scheme can be replaced.
  • Bitcoin’s problem is governance. The mathematics of the fix exists. The decision about three in ten coins with exposed keys, and about the ones nobody will ever move, does not.
  • If you run systems, the useful question is how long it would take you to find and replace every RSA and elliptic-curve key you depend on. For most organisations nobody knows the answer.

For anyone reading this on a phone and wondering whether to do something tonight: no. Your browser has probably been using a post-quantum key exchange for a couple of years without telling you.


Sources: the joint statement of ONCD, NSA and CISA and the companies’ statement as published by Anthropic and OpenAI; Anthropic’s four lattice papers and their Lean formalisation; the CIRG assessment; IBM Research, Cloudflare and Scott Aaronson on the result; NIST’s FIPS 203, 204 and 205; Glassnode’s measurement of exposed supply; BIP-360 and BIP-361. Prices are those reported by Unchained and CoinDesk on 3 December 2026.