Bitcoin Institute

Satoshi's Curve, secp256k1: "I Just… Picked One" and the NSA Backdoor

On a dark navy ground, a broad gold band curves across the picture like an elliptic curve, with a thin cream line running along it to a teal point. Small tags read 2011, 2013, 1997 and 2026; an orange tag reads P-256 beside scattered gold sparks; and the formula y² = x³ + 7 sits at the bottom.

On January 9, 2011, Hal Finney opened a thread on BitcoinTalk with a one-word title: secp256k1. Bitcoin signs every transaction on that elliptic curve, and Finney had noticed how unusual it was.

Hal Finney (BitcoinTalk post, January 09, 2011, 5:58:24 AM UTC)

I don’t know the rationale behind using secp256k1.

The next evening Satoshi answered the question, in a private email to Mike Hearn. The answer was short, and it did not mention the NSA. Fifteen years later a Korean post on X, viewed more than 230,000 times, told readers that Satoshi had picked the curve because he did not trust the U.S. government, and that he had never said why. Between the email and the post lies a story about a choice that kept being given reasons its author never gave.

1 The curve everyone else avoided

secp256k1 comes from SEC 2, a list of recommended curves published by the Standards for Efficient Cryptography Group in 2000. The “k” marks it as a Koblitz-type curve: its equation is y² = x³ + 7, which leaves almost no constants to choose. The curve listed right after it, secp256r1, is built differently. Its coefficient b comes from running a 160-bit seed through SHA-1, and the seed is printed without any account of where it came from. The U.S. government adopted that curve as NIST P-256 in FIPS 186-2, the same year.

Finney’s post set out the trade-offs. Koblitz curves have an internal structure that can speed up the arithmetic, and standards bodies had shied away from them for fear the same structure might one day be turned into an attack. He was not worried about secp256k1 itself, but libraries supported it poorly; BouncyCastle, the Java library he checked, had the code commented out. His suggestion was to consider moving Bitcoin to P-256, the more widely used standard.

The full parameters of secp256k1 are on the cryptography design page. Side by side, the two curves looked like this in 2011.

secp256k1P-256 (secp256r1)
PublishedSEC 2, 2000SEC 2 and FIPS 186-2, 2000
Equationy² = x³ + 7y² = x³ − 3x + b, with b derived from a seed by SHA-1
Where the constants come fromSmall and fixed by the curve’s designAn unexplained seed, given to the ANSI X9.62 committee by an NSA representative in 1997
SafeCurves “rigidity” ratingsomewhat rigidmanipulatable
In use in 2011Rare outside BitcoinWidely standardized, used by the U.S. government

The thread went on without Satoshi. He had made his last BitcoinTalk post four weeks earlier, on December 12, 2010. Hearn asked Finney whether he had emailed Satoshi, and recalled that when he had asked about other details, such as the 21 million coin limit, the reply had been an “educated guess.” Gavin Andresen wrote that if there were no real weakness, secp256k1 seemed good enough. Hearn guessed that the size of signatures on the blockchain had decided the choice.

2 The answer in Hearn’s inbox

On January 10, Hearn mentioned the thread at the end of an email to Satoshi and asked whether he had picked the curve for the speedup. Satoshi’s reply began with how little time the project had left him.

Satoshi Nakamoto (email to Mike Hearn, January 10, 2011, 8:47:00 PM UTC)

I must admit, this project was 2 years of development before release, and I could only spend so much time on each of the many issues. I found guidance on the recommended size for SHA and RSA, but nothing on ECDSA which was relatively new. I took the recommended key size for RSA and converted to equivalent key size for ECDSA, but then increased it so the whole app could be said to be 256-bit security. I didn’t find anything to recommend a curve type so I just… picked one. Hopefully there is enough key size to make up for any deficiency.

What he had worried about was size. RSA keys were too large for the bandwidth and storage of the time, and he went on to note that verification was turning out to be the heavier load: OpenSSL took 3.5 milliseconds per ECDSA check in his tests. The v0.1 code fits that account. Satoshi never wrote out a curve of his own; he asked OpenSSL for secp256k1 by name.

The next night Hearn passed the answer back to the thread.

Mike Hearn (BitcoinTalk post, January 11, 2011, 10:31:40 PM UTC)

I discussed this with Satoshi. There is no particular reason why secp256k1 is used. It just happened to be around at the time.

So the reason was in the open from January 2011, secondhand on the forum, and in Satoshi’s own words once Hearn published his emails with Satoshi in August 2017. In September 2013 Pieter Wuille gave the same account from memory on Bitcoin Stack Exchange.

Pieter Wuille (Bitcoin Stack Exchange answer, September 13, 2013)

I believe Satoshi was once asked this question, and answered that it was just some curve that existed and was presumed to be efficiently implemented.

3 The joke that came true

The NSA entered the thread the day after Hearn’s post, as a joke.

bitanarchy (BitcoinTalk post, January 12, 2011, 5:35:34 PM UTC)

I also discussed with satoshi, and he said that his employers at the NSA wanted him to create the first P2P currency with a back door in it. That back door happens to be in this specific elliptic curve. Government supercomputers searched for a random elliptic curve that contained a back door.

Just joking, but that’s my conspiracy theory. Actually if there is no particular reason for this elliptic curve to be chosen, that is actually suspicious…

Two years later the joke stopped being funny. On September 5, 2013, ProPublica, The New York Times and The Guardian published Edward Snowden’s documents on the NSA’s campaign against encryption. Among them was the claim that the agency had planted a weakness in a standard adopted in 2006. NIST immediately advised against Dual_EC_DRBG, the random-number generator in question, and dropped it from its draft guidance in April 2014. Every NIST constant without an explanation now looked like a possible hiding place, and P-256’s seed was one of them.

In December 2013 a user named Dusty quoted bitanarchy’s joke and said the conspiracy theory had turned out to describe something real.

Dusty (BitcoinTalk post, December 16, 2013, 1:04:20 PM UTC)

But I’m really not at ease knowing that every signature in a Bitcoin transaction is implemented using a very particular and unusual elliptic curve that has been selected for an unknown reason that his chooser is unwilling to elaborate on.

Gregory Maxwell turned the worry around in one line.

Gregory Maxwell (BitcoinTalk post, December 16, 2013, 4:31:04 PM UTC)

You mean you are uneasy that he chose the only standardized curve at the time without unexplained parameters?

The new reading had arrived. In October 2013 Vitalik Buterin wrote in Bitcoin Magazine that the simple parameters of secp256k1 left the NSA and NIST “very little wiggle room to create a deliberately bad curve.” His title called it Satoshi’s genius, but the article counted this among benefits Satoshi had not foreseen, a bullet Bitcoin had dodged rather than one it had seen coming. The SafeCurves project of Daniel J. Bernstein and Tanja Lange rated the two curves the same way: secp256k1 “somewhat rigid,” P-256 “manipulatable,” because its coefficients were “generated by hashing the unexplained seed.”

4 What was in the seed

The seed got an explanation only in 2026. Alfred Menezes, the main author of the ANSI X9.62 standard, recalled that Jerry Solinas, attending the meetings as an NSA representative, had handed him the seeds in the fall of 1997. In 2014 emails to Bernstein, Solinas remembered building them by hashing “a humorous message,” but no message was ever found. In 2023 Filippo Valsorda put up a bounty for anyone who could show how the five NIST seeds were made.

On October 15, 2026, a team at Anthropic claimed it. The seeds were not hashes of hidden text but the output of the C library’s lrand48, seeded with a Unix timestamp from 1997 or 1998. P-256’s seed came from a clock reading in August 1997. Valsorda wrote that the finding “completely rule[s] out” the method Bernstein and Lange had described for steering a seed toward a weak curve, and that the process left no room for an NSA-only backdoor. Some details remain open: the base points of P-256 and three other curves, and why only about half the valid seeds were published.

So the number that made P-256 suspicious in 2013 was, as far as the record now shows, a timestamp. The suspicion was reasonable for its time. The secret behind it turned out to be ordinary.

5 A motive assigned after the fact

Set side by side, Satoshi’s own records on the curve and what others said about his reason look like this.

Ever since, the advantage people later saw in the curve has been mistaken for Satoshi’s reason. In October 2021 an article submitted to Hacker News under the title “Why Did Satoshi Decide to Use Secp256k1 Instead of Secp256r1?” answered that the NIST curve’s constants had been set under the possible influence of the NSA. Maxwell, again, separated the two.

Gregory Maxwell (Hacker News comment, October 10, 2021)

Satoshi never said much about his choice— he certainly never said in public that he was concerned with NSA tampered parameters.

He added that the absence of any room for tampering was a nice feature, but that he had no reason to believe it was Satoshi’s motive. Even the answer itself had faded by then. Wuille, who had recalled it in 2013, said on the Chaincode podcast in January 2020 that “it is not actually known I think why Satoshi picked the secp256k1 curve.” On October 19, 2026, three days after the origin of the NIST curve seeds was announced, a blog post stated that “Satoshi never explained the choice.” Six weeks later the Korean post on X said the same. Theories that tie Satoshi to a government agency are collected in the identity-hypotheses overview.

The record runs the other way. Satoshi did explain the choice, and his explanation was that he had not had time to look into it. The two people who argued for a different curve in 2011, Finney and Hearn, argued for P-256, the curve with the NSA’s seed. The only talk of government in the 2011 thread was a joke that cast secp256k1 itself as the NSA’s curve. The reading that the curve kept the NSA out came in 2013, after Snowden.

Keeping the NSA out was not Satoshi’s reason. He used a curve OpenSSL already offered and spent his time on what he thought mattered more: block size and verification time. The curve did spare Bitcoin the later NIST dispute, and it paid off a second time. After the GLV patent expired in September 2020, Bitcoin Core 0.21.0, released in January 2021, began verifying signatures faster by default, using the structure Finney had noticed. Both were strokes of luck that came with a curve picked almost at random, not the fruit of foresight; Satoshi left no record of suspecting the NSA. “I just… picked one” is a plainer line than the legend, and it is the one he wrote.

Reference external source

https://bitcointalk.org/index.php?topic=2699.0

Other external sources

Show 10 more