BitBank
Blog > Has AI Cracked Bitcoin's Elliptic Curve?

Has AI Cracked Bitcoin's Elliptic Curve? The Math, Agentic Speedups, and an Interactive Calculator

The recent warnings from intelligence agencies and major infrastructure providers are genuinely significant. Still, there is an enormous mathematical difference between AI accelerating existing cryptanalysis algorithms and AI discovering fundamentally new mathematics that makes RSA and elliptic-curve cryptography computationally tractable.

The first is already happening. The second is the potentially catastrophic scenario, and as of 4 December 2026, there is no publicly verified demonstration of a practical break of either RSA-2048 or Bitcoin's secp256k1 elliptic curve. Even so, the latest announcements have materially increased our assessment of the long-term risk.

1. What the NSA, Cloudflare and Elon Musk actually said

SourceDateWhat they revealed
NSA, CISA and ONCD2 Dec 2026Frontier AI companies privately disclosed mathematical discoveries affecting existing cryptographic systems.
Cloudflare CEO Matthew Prince3 Dec 2026Advised organisations to assume systems relying on RSA or elliptic-curve cryptography are at risk.
Cloudflare engineering team3 Dec 2026Accelerated its post-quantum migration deadline from 2029 to 2027.
Elon Musk29 Nov 2026Acknowledged hearing rumours of an RSA-2048 breakthrough.
Elon Musk3 Dec 2026Described Bitcoin as “safe for now.”
The key qualification: the NSA's joint statement explicitly assessed that the recent advances “do not present an immediate and widespread threat” to existing cryptography.

The most grounded reading is that there is probably substantive unpublished research behind these warnings, without anyone yet being able to recover an arbitrary Bitcoin private key or factor a general RSA-2048 modulus. Cloudflare's move is the clearest signal because the company is committing real engineering resources to pull forward a multi-year migration rather than merely reacting to rumours.

2. How much progress have AI coding agents actually made?

2026 has already produced several concrete cryptanalysis milestones driven by autonomous coding and research agents. Notice the pattern across them: dramatic reductions in engineering time and implementation cost, paired with early hints of novel mathematical discovery.

3 September 2026 · Cognition / Devin
RSA-862 factored

AI coding agents built a GPU-optimised implementation of the General Number Field Sieve (GNFS), achieving roughly 10× lower cost than the previous public state of the art. The supervising researcher estimated the agents replaced months of work by specialist engineers.

13.5 GPU-years · ~US$400,000 compute
19 September 2026 · Anthropic / Claude
RSA-896 factored

Claude ported existing factoring software to GPUs and orchestrated a distributed computation across spare data-centre capacity.

Up to 2,048 GPUs · 10 days · 30 GPU-years
6 November 2026 · Google DeepMind
RSA-1024 attack improvements

AI agents reproduced a known signature-forgery attack at roughly one-third of the previous computational cost, while separate work estimated a 30-fold reduction in the marginal cost of batch factoring. These were restricted attacks and theoretical improvements, not a general break of RSA-1024 or RSA-2048.

~3× cheaper forgery · 30× batch-factoring gain
25 November 2026 · Google Cogentic
New theoretical integer factorisation result

AI-generated research claimed an unconditional subexponential factoring algorithm. Mathematically interesting, but its enormous complexity constant makes it unsuitable for practically breaking RSA, and the proof still requires broader verification.

Theoretical · impractical constant
30 November 2026 · Anthropic
New mathematical attacks on lattice problems

An unreleased Claude model discovered novel quantum algorithms targeting mathematical problems behind certain post-quantum cryptographic standards, complete with machine-checked Lean formalisation. The algorithms remain extraordinarily impractical at real-world key sizes.

Lean-verified · impractical at deployed sizes

We are moving rapidly from a world where only a handful of specialist teams could execute large-scale computational cryptography to one where AI agents dramatically lower the implementation barrier. That matters — but it is still a very different thing from collapsing exponential difficulty.

3. Mathematically, how close are we to cracking RSA?

RSA relies on the difficulty of reversing N = pq, where p and q are large primes. The best established practical general-purpose classical algorithm is the General Number Field Sieve (GNFS), with heuristic asymptotic complexity:

LN[ 1/3, (64/9)1/3 ]  =  exp[ (1.923 + o(1)) · (ln N)1/3 · (ln ln N)2/3 ] Subexponential in bit length: far softer than brute force, yet still brutal as key size doubles.

Progress in public RSA factoring records

Bar width shows key size in bits — not linear computational difficulty.

RSA-7682009
768 bits
RSA-7952019
795 bits
RSA-8292020
829 bits
RSA-862Sep 2026
862 bits
RSA-896Sep 2026
896 bits
RSA-1024Target
1,024 bits
RSA-2048Target
2,048 bits
Historical records 2026 AI-assisted records Not publicly factored

Using the leading term of the GNFS complexity formula and calibrating against the 30 GPU-years spent factoring RSA-896 gives the following rough asymptotic extrapolations (actual engineering costs also depend on memory, hardware, sieving parameters and parallelisation overhead):

RSA key sizeRelative computation vs RSA-896Estimated GPU-years
896 bits1×30
1,024 bits30×900
2,048 bits35 billion×~1 trillion
3,072 bits132 quadrillion×~4 quintillion

The takeaway is straightforward: RSA-1024 is increasingly within reach of well-funded computing organisations. RSA-2048 remains extraordinarily far away under the same mathematics. Even another 1,000-fold improvement in agentic implementation efficiency would leave RSA-2048 requiring on the order of a billion GPU-years.

4. Bitcoin's elliptic curve is an even harder classical problem

Bitcoin does not use RSA. Its ECDSA and Schnorr signatures operate over the secp256k1 elliptic curve:

y2 ≡ x3 + 7  (mod p),    p = 2256 − 232 − 977 Public key Q = dG. Recovering the private scalar d from Q and G is the elliptic-curve discrete logarithm problem (ECDLP).

Unlike RSA, there is no known generally applicable subexponential classical algorithm for properly chosen prime-field elliptic curves such as secp256k1. The best established generic classical attack, Pollard's rho, has expected complexity:

O(√n) ≈ O(2128) ≈ 3.4 × 1038 group operations

A particularly relevant benchmark published on 14 October 2026 measured how fast Pollard's rho runs on NVIDIA Blackwell GPUs. The authors achieved a 17.2× improvement against a smaller binary elliptic curve, yet their measurements on NIST P-256 — a prime-field curve with comparable generic security to Bitcoin's secp256k1 — still put the expected effort at roughly 6 × 1021 GPU-years. That is far more informative than headline GPU FLOPS, because modular elliptic-curve arithmetic does not map directly onto dense tensor-core workloads.

INTERACTIVE SIMULATOR

Classical Elliptic-Curve & RSA Cracking Calculator

Test how far real-world GPU clusters and agentic coding speedups actually get against Bitcoin's secp256k1 — then switch the algorithm complexity to see why new math matters infinitely more than more GPUs. Baseline assumes 109 useful elliptic-curve group operations per second per GPU (or 30 GPU-years calibrated to Anthropic's RSA-896 run for GNFS modes).

1,000,000 GPUs
11K1M1B
1×
1×10K×100M×1T×
Estimated time to solve one generic 256-bit ECDLP Physically intractable
1.08 × 1016 years

781,000 times the approximate age of the universe (13.8 billion years).

1 sec1 yearAge of universe1025 yr
Total work2128 ops
Cluster throughput1.00 × 1015 ops/s
Est. cluster power (700 W/GPU)700 MW

Idealised parallel scaling; ignores communication overhead, distinguished-point memory bandwidth and constant factors. Not a prediction of undiscovered algorithms.

Even if you could dedicate one million GPUs to this problem and make them another million times more efficient, solving a single Bitcoin private key under Pollard's rho would still take roughly 10.8 billion years. More GPUs and better CUDA kernels alone are not a credible mechanism for breaking Bitcoin's elliptic curve.

5. What if AI discovers a fundamentally better algorithm?

This is where the genuine risk sits. Different classes of progress sit on completely different rungs of the complexity ladder:

Type of discoveryMathematical effect
Better GPU kernelsReduces constant factors (e.g. 10×–20×).
Improved search algorithmsPotentially shaves several bits of security.
New subexponential ECDLP algorithmCould fundamentally weaken Bitcoin's security margin.
Practical polynomial-time algorithmPotentially destroys existing RSA or ECC security outright.
Efficient classical simulation of Shor's algorithmCould threaten both RSA and ECC simultaneously.

The historical public records for unrestricted elliptic-curve discrete logarithms are approximately 114 bits over prime fields and 117 bits for a prime-order subgroup over a binary field. Moving from 114 bits to 256 bits under generic square-root scaling requires roughly 2(256−114)/2 = 271 ≈ 2.36 sextillion times more work.

Now compare that against hypothetical classical algorithms with smaller exponents on a 256-bit curve:

O(n1/2)
2128 operations

Current generic algorithm (Pollard's rho). Cosmically intractable.

O(n1/3)
285.3 operations

Major theoretical breakthrough (~7 trillion× faster asymptotically), still huge.

O(n1/4)
264 operations

Potentially practical at large cluster scale — hours on 1M GPUs.

O(n1/5)
251.2 operations

Potentially widely accessible even on modest hardware.

An algorithm achieving the cube root rather than the square root of the group size is roughly 7 trillion times faster asymptotically. This is why extrapolating cryptographic risk purely from GPU roadmaps misses the real tail event: mathematical discoveries create discontinuous jumps. At the same time, proven lower bounds exist for generic-group algorithms, so an AI would have to exploit special algebraic structure in the curve or its representation rather than merely optimising a generic walk.

6. Can AI actually discover mathematics at that level?

Increasingly, there is evidence that frontier models can discover genuinely novel mathematics rather than merely reproducing known techniques. In July 2026, Anthropic's Claude Mythos Preview operated semi-autonomously to uncover a new cryptanalytic attack against HAWK, a candidate post-quantum signature scheme — significant enough that HAWK was withdrawn from the NIST additional-signature process. In August 2026, OpenAI also reported ten advances across mathematics and theoretical computer science spanning lattice cryptography, algebraic complexity and quantum complexity.

AI capabilityCurrent public evidence
Writing optimised CUDA codeStrong
Managing distributed GPU computationsStrong
Reproducing advanced mathematicsStrong
Combining mathematical techniques across fieldsStrong and improving
Discovering novel cryptographic weaknessesDemonstrated (e.g. HAWK)
Practical classical break of RSA-2048Not publicly demonstrated
Practical classical break of secp256k1Not publicly demonstrated

Combining reasoning models, thousands of parallel research agents, formal proof verifiers like Lean, automated experimentation and large GPU clusters is substantially more consequential than coding agents alone. The bottleneck is shifting from implementing mathematical ideas to discovering the right mathematical ideas.

7. Subjective probability estimates

The ranges below are subjective judgement bands based on public evidence and current mathematical security margins — not statistically calibrated confidence intervals. Undisclosed research referenced by the NSA could materially shift them. Here, a “practical break” means recovering a key for a well-generated, full-size instance using resources realistically accessible to a major organisation, using classical computers only (excluding quantum hardware).

By December 2027
RSA-20483–10%
Bitcoin secp256k11–4%
Both broken0.5–3%
By December 2029
RSA-204810–25%
Bitcoin secp256k14–12%
Both broken2–8%
By December 2031
RSA-204820–40%
Bitcoin secp256k18–25%
Both broken5–18%
By December 2036
RSA-204835–65%
Bitcoin secp256k120–45%
Both broken15–35%

Based on public evidence, the chance that both systems have already been practically broken in secret sits in the low single digits. RSA carries higher risk because its structure has already yielded subexponential algorithms; prime-field elliptic curves have resisted general-purpose breakthroughs for decades. Still, neither problem has ever been mathematically proven intractable.

8. Quantum computing is arguably the bigger threat to Bitcoin

Quantum computing is fundamentally different because the winning algorithm — Shor's algorithm — has been known since 1994. Breaking elliptic-curve cryptography on a sufficiently capable quantum computer requires engineering progress, not an undiscovered mathematical miracle. In March 2026, Google Quantum AI published updated resource estimates specifically targeting Bitcoin's secp256k1 curve:

Logical quantum bits ≤ 1,200 One proposed circuit configuration targeting secp256k1
Toffoli gates ≤ 90M For the same proposed circuit configuration

That remains well beyond demonstrated fault-tolerant quantum hardware, since each logical qubit still requires substantial physical qubits and error correction. Yet the distinction is crucial:

  • Classical attack: requires a major undiscovered mathematical breakthrough.
  • Quantum attack: requires sustained engineering progress to execute known mathematics.
  • AI-assisted quantum attack: AI can accelerate both quantum circuit optimisation and physical hardware design.

9. Would cracking elliptic-curve cryptography invalidate Bitcoin?

Not automatically — but a sudden, fast break before Bitcoin migrates its signature scheme would be severe. Here is what breaks and what stays intact:

Bitcoin componentIf RSA is brokenIf secp256k1 is broken
Wallet signaturesNot directly affectedCompromised
Exposed public keysNot directly affectedVulnerable to key recovery
SHA-256 miningNot directly affectedNot directly affected
Existing blockchain historyRemains intactNot automatically invalidated
21 million supply limitUnchangedUnchanged

The acute danger is unauthorised spending of coins whose public keys are already visible on-chain. According to the authors of BIP-361, more than 34% of all bitcoin had exposed public keys on-chain as of March 2026 — including early P2PK outputs, reused addresses and Taproot outputs. Unspent addresses that hide their public key behind a hash (such as fresh P2PKH or P2WPKH addresses) enjoy an extra layer of protection until they broadcast a spend transaction.

Bitcoin can migrate to post-quantum signature schemes such as hash-based signatures (Lamport, SLH-DSA / SPHINCS+), structured lattice schemes (ML-DSA), or hybrid constructions. Concrete proposals are already under discussion:

  • BIP-360: introduces a new output type that removes the exposed Taproot key-spending path.
  • BIP-361: outlines a broader post-quantum migration and the eventual sunset of legacy signatures.

Draft proposals are not a deployed upgrade. The hardest part is not implementing a replacement signature library — it is achieving social consensus, upgrading wallets and exchanges, migrating active UTXOs, and deciding how the network treats dormant or permanently lost coins.

10. What to watch for next

Rather than trading on rumours or executive soundbites, track measurable mathematical milestones:

MilestoneSignificance
Public RSA-1024 factorisationMeaningful, but expected progress
Public RSA-1536 factorisation at reasonable costSerious warning for RSA
Public unrestricted 160-bit elliptic-curve solution at reasonable costSerious warning for ECC
A subexponential classical algorithm for secp256k1Fundamental threat to Bitcoin
Large-scale fault-tolerant quantum computationMajor threat to both RSA and ECC
Bitcoin activating post-quantum signaturesMajor reduction in long-term risk
Overall assessment: Bitcoin is almost certainly safe today, and Cloudflare is still right to accelerate its 2027 post-quantum migration. Both statements can be true at once. If AI merely makes existing cryptanalytic algorithms a million times faster, Bitcoin's elliptic curve remains remarkably secure. The real risk is not that AI makes GPUs fast enough — it is that AI discovers an algorithm that no longer needs them to be that fast, before Bitcoin finishes migrating.

Educational analysis only, not financial or security advice. Complexity figures and calculator outputs are idealised asymptotic illustrations, not formal cryptanalytic guarantees. Related reading: Public-Key Cryptography: How Crypto Wallets Work and Self-Custody: Seed Phrases, Hardware Wallets, and MPC.