⚡Bitcoin & Quantum & AI
Part 5

Bitcoin After the December Cryptography Scare

by @nvk · December 5, 2026
Software bugs exploit faulty code; classical cryptanalysis seeks a mathematical shortcut; quantum key recovery runs Shor on quantum hardware. AI can help discover attacks, but is not a quantum computer.

On December 3, nine Bitcoin developers made post-quantum signatures their top priority. Their statement included this:

“We are not aware of any concrete attacks, and have no non-public information, but feel the time to act is now.”

— Joint developer statement, December 3

The NSA has urged faster migration after private disclosures from AI companies. Cloudflare has brought forward its migration schedule. Bitcoin developers are preparing replacements. None of those announcements publicly demonstrates a practical attack on Bitcoin’s keys.

An AI finding a software bug, an algorithm weakening a particular mathematical problem, and a quantum computer recovering a Bitcoin private key are different events. For Bitcoin, the question is whether a method can recover a secp256k1 private key at a practical cost.

What the NSA actually disclosed

On December 2, the NSA urged operators of National Security Systems to accelerate their transition to post-quantum cryptography. It cited private disclosures from AI companies alongside the existing quantum threat. It also highlighted encrypted information being collected for later decryption and devices whose security may be difficult to upgrade. NSA release

The joint statement from the NSA, CISA and the Office of the National Cyber Director said the advances “do not present an immediate and widespread threat to that cryptography.” It did not identify an attack on Bitcoin, name secp256k1, or provide attack costs. Joint statement

That wording leaves room for a narrow or expensive attack. The agencies haven’t published enough detail to estimate the cost of one against a Bitcoin key.

Cryptographer Filippo Valsorda reads the advisory more alarmingly. On December 2, he described P-256 and Curve25519-family curves as “likely broken or significantly weaker than we thought”. His argument draws on the algorithms the NSA tells operators to inventory and replace. That is his interpretation of the warning; the post does not demonstrate a secp256k1 exploit. Valsorda’s analysis

Blockstream disputes the claim that these statements establish a threat to Bitcoin’s current cryptography, while supporting accelerated work on replacements. Blockstream response

Bitcoin cryptographer Jonas Nick put the disagreement plainly on December 2:

“Some read the NSA advisory as evidence that 256 bit elliptic curves are broken. I think that evidence is very thin.”

— Jonas Nick

Nick also highlighted the advisory’s urgency. The disagreement concerns what can be inferred from the warning; the private discoveries remain unpublished.

Wei Dai called on the labs to clarify whether secp256k1 is affected. He urged disclosure to relevant organizations if it is, and public clarification if it isn’t:

“If secp256k1 is not affected, OpenAI and Anthropic also have a responsibility to disclose such a fact directly to the public.”

— Wei Dai, December 5

Anthropic studied a different mathematical problem

The public Anthropic result released on November 30 concerns lattice problems. Its main paper describes quantum algorithms whose advantage appears as the problem size grows. The authors explicitly say they are impractical for the parameters used by ML-KEM and ML-DSA, two post-quantum standards. Paper and formalization

Bitcoin’s ECDSA and Taproot Schnorr signatures rely on the elliptic-curve discrete logarithm problem on secp256k1: recovering a private key from its public key. Bitcoin doesn’t use these lattice schemes to authorize ordinary spending. BIP 340

The Cryptography Incident Review Group says Anthropic’s algorithm would cost far more at deployed parameters than previously known attacks, which are already impractical. Its November 30 assessment includes this conclusion:

“At present, the reported attack falls far short of compromising the current NIST standards”

— Cryptography Incident Review Group, excerpt

The group recommends continuing the post-quantum transition. Its members include Dan Boneh, Matthew Green, Yael Tauman Kalai and Justin Thaler. CIRG membership

Cloudflare’s JP Aumasson, Mari Galicer, Christopher Patton and Bas Westerbaan reached the same practical conclusion about this particular research on December 1:

“This research is purely theoretical, and does not impact the security of deployed cryptosystems.”

— Cloudflare’s assessment, updated December 3

A better algorithm could follow from this work. The published one still requires a quantum computer; Claude discovering it doesn’t let ordinary servers execute it. Scott Aaronson described that limitation on December 2:

“the huge constants as well as the need for a quantum computer make the cryptographic attack not immediately exploitable!”

— Scott Aaronson, excerpt

Adam Back also pushed back on claims that the public paper had broken RSA:

“the paper didnt break anything, wasn’t even on RSA.”

— Adam Back, December 3, excerpt

These assessments concern the published lattice paper. The government hasn’t established that its private disclosures are the same finding.

secp256k1 and secp256r1 are different curves

Bitcoin uses secp256k1. P-256 is secp256r1. They have different mathematical parameters. RFC 5480 maps P-256 to secp256r1; Bitcoin’s Schnorr specification names secp256k1. RFC 5480, BIP 340

Property secp256k1 secp256r1 / P-256
Used for Bitcoin’s ECDSA and Taproot Schnorr signatures Yes No
Field size 256 bits 256 bits
Curve equation, modulo its own prime y² = x³ + 7 y² = x³ − 3x + b
Parameter construction Simple coefficients: a = 0, b = 7 a = −3; b generated through a published seed-based procedure
Approximate classical security against known generic attacks 128 bits 128 bits
Vulnerable to sufficiently capable Shor-based key recovery Yes Yes

The curves also have different field primes, base points and group orders. The parameter definitions and classical strength figures are in Standards for Efficient Cryptography 2 (SEC 2). The 256 in each name describes field size; it does not promise 256 bits of attack resistance. SEC 2, sections 2.1 and 2.4

A bug in a P-256 implementation, or an attack that depends on its particular parameters, needs a separate demonstration against secp256k1.

Shor’s algorithm applies to both curves. Simple coefficients don’t make k1 quantum-resistant, and a seed-based construction isn’t evidence by itself that r1 has a backdoor. Shor’s paper

What an AI-discovered attack actually breaks

A wallet that repeats an ECDSA signing nonce can expose its private key without anyone solving the curve’s discrete-logarithm problem. A nonce is a value used inside signature generation. Bad randomness, timing leaks and other software bugs can also expose secrets. An AI that finds one of these flaws has found an implementation failure. RFC 6979

AI can help find such flaws. It can also help discover mathematical attacks. Anthropic explicitly distinguished the two in July, when it reported improvements against the candidate signature scheme HAWK and a weakened, reduced-round version of AES:

“Now, we have found that Claude is able to find mathematical flaws in the algorithms themselves.”

— Anthropic Frontier Red Team, July 28, 2026

The attacks applied to HAWK and reduced-round AES. They demonstrated mathematical progress, without breaking full AES or Bitcoin’s signatures.

Attack What the attacker exploits What a successful result would establish
Implementation exploit A bug, leaked secret, bad randomness or signing mistake The affected software or device is vulnerable under the attack’s conditions. A shared bug could affect many users.
Classical mathematical attack A shortcut in the cryptographic problem, running on ordinary computers Correct implementations could also be vulnerable, if the shortcut applies to their scheme and parameters and is cheap enough.
Shor-based quantum key recovery The mathematical structure of the discrete-logarithm problem A sufficiently capable quantum computer could derive a private key from its public key even when the signing software works correctly.
Exhaustive search, including Grover-assisted search Trying candidates without a scheme-specific shortcut Security depends on the search space, cost of each trial and available hardware. This is a different attack from Shor’s.

“Grinding keys” suggests trying candidates until one works. Shor exploits the curve’s mathematical structure. Grover speeds up unstructured search, reducing the number of trials from roughly N to √N. Those are different methods, and a trial still costs computation. For a 256-bit elliptic-curve group, generic classical attacks already take roughly 2¹²⁸ work; applying a blanket halving rule to the key size misses the attack being considered. Shor, Grover, SEC 2

“Post-quantum” describes cryptography designed to resist quantum attacks. It normally runs on ordinary computers. It does not mean the defender has a quantum computer, and it does not prevent software from leaking a secret. CIRG’s explanation

Justin Thaler emphasized implementation risk in an earlier essay:

“For years to come, implementation vulnerabilities will be a far bigger security risk than a cryptographically relevant quantum computer.”

— Justin Thaler, December 5, 2025

Thaler wrote that a year before this week’s disclosures. Implementation security remains a separate job even after replacing a signature scheme. Bitcoin’s libsecp256k1 documents constant-time signing and deterministic ECDSA nonce generation, protections against particular implementation risks. Neither protects against Shor’s algorithm. libsecp256k1

The response depends on the failure. A software flaw may call for a patch and replacement of compromised keys. A practical attack on the underlying mathematics can require replacing the cryptographic scheme itself. The public NSA statements do not give enough detail to classify every private discovery as either one.

Which Bitcoin keys would be exposed?

Bitcoin’s ledger is public. An attacker who recovers a private key can sign a transaction spending the coins it controls. The relevant mathematical problem is an elliptic-curve discrete logarithm, rather than the factoring problem used in RSA.

Public-key exposure changes the attacker’s opportunity. A key visible for years gives an attacker much longer than a key first revealed while its owner is spending. Old pay-to-public-key outputs and Taproot outputs expose public keys. Some other output types hide them behind hashes until spending, provided the relevant keys or scripts have not already been revealed. Reuse can remove that protection. BIP 360’s exposure analysis

Fresh addresses can reduce exposure when their output type hides the key. A conventional spend eventually reveals information the attacker may need, though. A fast enough attacker could race that transaction before confirmation.

The familiar “harvest now, decrypt later” concern has a different consequence for Bitcoin. There is no secret blockchain to decrypt. An attacker can record exposed keys and later target coins still controlled by them. Moving funds to a sound replacement scheme before key recovery becomes practical can change that situation. Encrypting a wallet file cannot repair a weakness in the signature scheme used on the network.

What would the quantum computer have to do?

Google and collaborators’ March research gives one estimate for attacking a 256-bit elliptic curve: at most 1,200 logical qubits and 90 million Toffoli gates, operations used in the quantum computation. Under specified superconducting hardware assumptions, the authors estimate attacks taking minutes with fewer than half a million physical qubits. Research paper

A logical qubit is an error-corrected computational unit. A physical qubit is part of the hardware used to build it. Neither count alone tells you whether a machine can sustain the required computation. Error rates, gate speed, connectivity and the duration of the calculation matter together.

The paper estimates the machine needed to run the attack; it doesn’t report having run it. A future classical shortcut would create a different problem: an attacker could recover keys without waiting for that hardware.

The migration work has accelerated

On December 3, Cloudflare moved its target for full post-quantum migration from 2029 to 2027. It cited its own risk analysis and the government statement. Its existing post-quantum encryption coverage does not finish the job: certificates and other authentication systems also need upgrading. Cloudflare’s plan

JP Aumasson, Mari Galicer, Sharon Goldberg and John Graham-Cumming explained the change:

“AI-accelerated research has given us a second reason, and a reason to move faster.”

— Cloudflare’s December 3 announcement

A 2027 migration target tells customers when Cloudflare intends to finish upgrading. It doesn’t tell them when an attacker will be able to recover a key.

The nine Bitcoin developers aim to draft proposals by the end of January 2027. Their scope includes a post-quantum signature scheme, integration into Bitcoin Script and at least one new output type. Developer statement

The signers are Antoine Poinsot, Cory Fields, Greg Sanders, Jonas Nick, Matt Corallo, Michael Ford, Murch, Pieter Wuille and Tim Ruffing. They speak as individuals. January is their target for proposals; review, implementation and adoption still follow.

BIP 360 remains a draft too. Its proposed Pay-to-Merkle-Root output removes Taproot’s key path to address long exposure. The output alone doesn’t protect against a fast attack during spending; BIP 360 doesn’t supply post-quantum signatures. Current BIP 360

Users would need wallets that support the new spending rules, backups they can recover, acceptable transaction costs and enough time to move their funds.

What Espresso’s experiment establishes

Espresso’s Practical Quantum Safe Bitcoin project explores hash-based spending conditions under Bitcoin’s existing rules, without a consensus change. Its repository describes a Legacy version and a SegWit version with different performance, relay and security tradeoffs. PQSB research

The fast laptop result belongs to a different configuration from the version that travels through normal transaction relay. The repository also labels its forgery levels as classical work estimates. Its security notes exclude quantum-search costs, so those figures can’t be read as bits of quantum security. Security assumptions

The authors also say the software is unaudited and that the scripts themselves lack machine-checked proofs. A successful transaction demonstrates that a spend can be accepted; it does not prove that every unauthorized spend is impossible.

Coins left under their old spending conditions gain no protection from someone else’s demonstration.

What would change the assessment

For the next Bitcoin-break claim, ask for the attack on secp256k1, its hardware and runtime requirements, its success probability, and an independent check. A result against another curve or a deliberately weakened scheme needs an explanation of how it reaches Bitcoin.

A practical classical key-recovery attack would change the assessment immediately. A quantum demonstration would need an engineering path to Bitcoin’s key sizes. Resource estimates can move before either exists, provided their hardware assumptions survive scrutiny.

For a proposed replacement, ask what protects the coins during spending, how backups work, what software verifies the signatures and who has reviewed it. Those are questions the planned January proposals need to answer.