What It Costs to Get d from dG
“Fast private key recovery (e.g. in one week) on available hardware (e.g. a large GPU cluster).” That is Justin Drake’s definition of a break, from the post quoted in Part 0. It is specific enough to test against. The best public algorithm for the problem is known. I can run it and count what it does.
So this post measures the attack on curves small enough to finish, checks the measurement against theory, and then asks how far the real curve is from one week.
The best public attack
Scanning the table from Part 1 takes about n
steps for a group of n points. Pollard’s rho does it in about √n. The idea
is the birthday paradox.
Take a random-looking walk through the group in which every point is a known
combination aG + bQ. If two different combinations ever land on the same
point, then
a₁G + b₁Q = a₂G + b₂Q and since Q = dG: d = (a₁ − a₂) / (b₂ − b₁) mod n
Among randomly chosen points, a repeat is expected after about √(πn/2) of them. No structure of the curve is used. The method works on any group, which is why it is called generic.
rho.py implements the version used for real record computations, due to van
Oorschot and Wiener. Many short walks run independently. Each stops when it
reaches a “distinguished” point, one whose x-coordinate has a fixed pattern of
zero bits, and only those points are stored. Two walks that ever touch follow
the same path afterward and arrive at the same distinguished point, which
exposes the collision. This is what lets the attack spread across thousands of
machines with a small shared table.
Measured on small curves
The script generates curves with the same shape as secp256k1: y² = x³ + 7,
a prime with the same residues modulo 3 and 4, and a prime number of points.
It solves random instances and counts point additions.
bits order n trials mean additions sqrt(pi*n/2) ratio adds/s
24 8420119 100 3,689 3,637 1.01 892,758
28 195078733 100 18,615 17,505 1.06 1,241,091
32 2191984789 100 61,604 58,678 1.05 905,618
36 48039226789 54 298,185 274,700 1.09 830,048
40 989610261499 12 1,374,817 1,246,786 1.10 768,806
44 16252851604909 8 4,950,250 5,052,714 0.98 695,824
48 248559858961543 8 25,231,768 19,759,477 1.28 640,787
The ratio column is the result. Across curve sizes from 24 to 48 bits the measured work stays within about 30% of √(πn/2), and within 10% wherever there are enough trials to average out the luck of individual runs. Each four extra bits of curve multiply the work by about four. That is the scaling law the security claim for secp256k1 rests on, and it holds wherever I can test it.
Six of the seven ratios sit above 1.00, and that is not luck. After two walks merge, the solver keeps stepping until the next distinguished point, and the walk is only an approximation of a random one. Both add a few percent.
The last column is how slow my code is. It is single-threaded Python doing a modular inversion per step.
The same law at 256 bits
secp256k1: sqrt(pi*n/2) = 2^128.33 additions
at this script's 640,787 additions/s : 10^25.3 years
to finish in one week you need : 10^32.8 additions/s
a cluster doing 10^15 additions/s gets 2^69.0 additions in a week
so a one-week break must cut the exponent from 128 to about 69 bits
The solver does not use the symmetries from Part 3. With them the first line drops by a factor of √6, to about 2¹²⁷. Nothing below depends on that one bit.
Three numbers are worth reading slowly.
At this script’s speed the real curve would take about 10²⁵ years. That is unfair to the attacker, so ignore it.
To finish in a week at the generic cost you would need about 10³³ additions per second. For scale, the entire Bitcoin network computes on the order of 10²¹ hashes per second, and a hash is cheaper than a point addition. No amount of purchased hardware covers twelve orders of magnitude.
So take the hardware as given and solve for the algorithm. Suppose a cluster manages 10¹⁵ additions per second, which is generous. A week of that is about 2⁶⁹ operations. A one-week break therefore needs an algorithm whose cost on secp256k1 is about 2⁶⁹ instead of 2¹²⁸.
That is the content of the worst case. It does not ask for faster machines or a tuned implementation. It asks for a new algorithm that removes roughly 59 bits from the exponent of a problem whose best attack has had the same exponent since 1978.
The largest prime-field curve ever broken in public was 112 bits, in 2009, on a cluster of about 200 PlayStation 3 consoles over several months. That took on the order of 2⁵⁶ additions. Nobody has published a larger full-curve break since.
The practical frontier is further out, and it is on Bitcoin’s own curve. The Bitcoin “puzzle” transactions pay out to keys confined to a known range, with the public key exposed. Puzzle #130, a key somewhere in a 129-bit interval of secp256k1, has been solved. A search over an interval that size costs on the order of 2⁶⁵ additions. So somebody has already paid for 2⁶⁵, which is four bits short of the cluster-week above and 63 bits short of the real problem.
Curves that did break
“The exponent has not moved” is true for generic curves. It is not true for every curve, and the exceptions are the honest core of Drake’s concern. Each one below went from “believed hard” to “easy” because of a property specific to a family.
| Year | Family | What happened |
|---|---|---|
| 1993 | Supersingular curves | Menezes, Okamoto, and Vanstone used a pairing to move the problem into a finite field, where much faster algorithms apply |
| 1997–98 | Anomalous curves, where n = p |
Smart, Satoh and Araki, and Semaev independently found an attack that runs in roughly the time of one scalar multiplication |
| 2016 | Pairing-friendly curves such as BN254 | Kim and Barbulescu improved the number field sieve; a curve sold as 128-bit dropped to about 100 |
| 2022 | Supersingular isogeny key exchange (SIDH) | Castryck and Decru recovered keys of a fourth-round NIST post-quantum candidate in about an hour on one core |
The last row is not a discrete-log problem, but it belongs here for its shape: a scheme built on elliptic curves, studied for a decade, fell to mathematics that had been in the literature since 1997.
Two observations.
First, every one of these attacked extra structure. curve_zoo.py in
Part 3 checked the first two conditions directly:
secp256k1 is not anomalous, and its embedding degree is far too large for a
pairing attack. Standard curves are chosen to avoid every family on this list.
Second, every one of these was a surprise. Nobody shipping a supersingular curve in 1990 thought it was weak. The list of structures to avoid is a list of attacks already found. And as Part 3 showed, secp256k1 carries one structure, its efficient endomorphism, that a random curve does not. Twenty-five years of looking have produced only a constant-factor speedup from it.
Two ways the exponent could move
A quantum computer. Shor’s algorithm solves the discrete log in polynomial time on a machine that does not exist yet. The estimates of the machine’s size keep shrinking, and this is the threat the post-quantum migration was planned around. It is a hardware question with a roadmap.
A classical shortcut. This is Drake’s scenario: a new algorithm, possibly found with AI assistance, that runs on ordinary hardware. The argument for taking it seriously is the table above, plus one 2026 data point: in July, Anthropic reported that Claude Mythos Preview had found an improved key recovery attack on HAWK, a lattice signature candidate, and the HAWK team withdrew it from NIST’s process the next day. The argument against is that nothing of the kind has been shown for any standard elliptic curve, and that the one AI result about curves so far explained where their seeds came from.
Drake also suggests that results may be held back. He points to a “striking under-representation of cryptographic breakthroughs among the 722 mathematical results OpenAI published,” and names his base case: “Backroom interventionism.” I have no way to test a claim about what was not published, so I leave it there.
Where that leaves secp256k1
A one-week break needs an algorithm that costs about 2⁶⁹. The best published one costs 2¹²⁸, and Pollard wrote it down in 1978. Curves have fallen much further than that before, every time to a trick that needed something special about the family. secp256k1 has one special thing, and so far it is worth a factor of √6.
I cannot run an algorithm nobody has published. I can check what it would take as input, and that is a public key. Some coins handed theirs over years ago.
Part 5 follows a signature onto the chain to see which ones.