Bitcoin Institute

Daniel J. Bernstein

wrote the post behind Hashcash and took crypto export rules to court

Figures

A large golden postage stamp with a serrated edge on dark navy. Two rows of dots run across it, joined by lines to two matching rows on the left, and a round blue postmark at its lower right trails lines off to the right.

On March 17, 1997, Daniel J. Bernstein posted a few lines to the newsgroup sci.crypt under the title “A 56-bit collision in MD5.” The post showed two different strings run through the MD5 hash function. The two results were 32 hex digits each, and their first 14 digits, 56 bits, were identical. He had found them in several hours on a Pentium, using a few bytes of memory and standard techniques. His comment was brief.

D. J. Bernstein (sci.crypt post, March 17, 1997)

There’s nothing exciting about this computation

One reader seized on it. Adam Back asked in the same thread six days later what technique Bernstein had used, and five days after that, on March 28, he announced Hashcash. Hashcash turns the work of matching the leading bits of a hash into postage for email. Eleven years later, the paper by Satoshi Nakamoto named Hashcash as the model for its proof-of-work.

1992Asks the StateDepartment whether hemay publish Snuffle(Jun 30)1995Sues the government,calling the export rulesunconstitutional (Feb21)1996The district court holdsthe rulesunconstitutional (Dec)1997Posts a 56-bit MD5collision to sci.crypt(Mar 17)Back announcesHashcash (Mar 28)Back writes that thepost started himthinking (Mar 29)1999An appeals court panelaffirms the district court(May 6)2002The government backsaway from its rules atoral argument (Oct 18)2005The Poly1305-AESpaper (Mar 29)2008The ChaCha paper(Jan 28)

Eleven days from the post to Hashcash

Bernstein ran the computation to answer a claim. The claim was that finding hash collisions on structured messages takes a lot of memory. With one Pentium and a few bytes of memory, he showed that it does not.

Back took something else from it. Matching only part of a hash is work whose cost can be set as high or as low as you like by choosing how many bits must match, and anyone can check the result in an instant. The day after Back announced Hashcash, a reader asked how Bernstein’s post bore on it, and Back answered.

Adam Back (Cypherpunks mailing list post, March 29, 1997, 4:56:45 PM UTC)

It is interesting that you should reference Dan Berstein’s sci.crypt post of a couple of days ago, as his post is what started me thinking about using partial hash collisions as an anti-spam postage system which preserves anonymity.

In the same reply Back explained how the two computations differ. Bernstein had found a collision between any two strings. Hashcash looks for a collision with one fixed string. The spark and the mechanism are separate things, and Bernstein did not design Hashcash.

Suing the government over a gap in its export rules

When he posted to sci.crypt, Bernstein was suing the U.S. government.

As a doctoral candidate at the University of California, Berkeley, he had built an encryption method called Snuffle, a private-key cipher based on a one-way hash function. U.S. rules at the time put encryption on the same list as weapons and restricted its export, but they did not restrict hash functions. Snuffle was built to show that anyone with a published hash function could quickly make a cipher. The background is in the article on the years when code was treated as a weapon.

On June 30, 1992, Bernstein asked the State Department whether he needed permission to publish Snuffle. The department answered that Snuffle was a munition. On February 21, 1995, with the backing of the Electronic Frontier Foundation (EFF), he sued the government, arguing that the rules violated the Constitution. The person who set that lawsuit in motion was John Gilmore, one of the EFF’s founders.

The district court held the rules unconstitutional in December 1996. The government then moved encryption under the Commerce Department’s rules, and in August 1997 the court held those unconstitutional as well. On May 6, 1999, a three-judge panel of the Ninth Circuit affirmed the district court by two votes to one. By then Bernstein was a professor at the University of Illinois at Chicago.

The case did not end there. By Bernstein’s own account, the government asked for a rehearing before a larger group of judges, and the panel’s decision was withdrawn. Before the rehearing could take place, the government added a large exception to the rules. The case went back to the district court. At oral argument on October 18, 2002, the government backed away from its rules, and the court dismissed the case as not ripe. Bernstein never won a final judgment. It was the rules that changed.

Three pieces of work that reached Bitcoin

Bernstein’s work reached Bitcoin by separate routes.

WorkYearWhere it ended up in Bitcoin
The sci.crypt post (a 56-bit collision in MD5)1997The spark for Back’s Hashcash, which the paper names as the model for proof-of-work
The lawsuit over export rules1995–2002The government added an exception to its rules, and from 2000 publicly available encryption source code could in practice be exported freely
Poly1305 and ChaCha2005, 2008The cipher and authenticator that BIP 324 chose for encrypting traffic between nodes

The third is inside Bitcoin’s software. BIP 324 chose ChaCha20Poly1305 to encrypt traffic between nodes. Bernstein designed both ChaCha and Poly1305. ChaCha has a second name, “Snuffle 2008.” He kept the name of the cipher that started the lawsuit.

He has also rated the choices other people made. SafeCurves, a table rating elliptic curves that he publishes with a coauthor, counts secp256k1, the curve behind Bitcoin’s signatures, among the curves that do not meet all of its criteria.

No record on this site shows Bernstein writing about Bitcoin or exchanging messages with Satoshi on a mailing list. Even so, trace the line of proof-of-work back and it arrives at a few lines from March 1997. Ask why Bitcoin’s source code could leave the country freely, and one of the answers is a complaint filed in 1995. Bernstein saw nothing exciting in matching part of a hash. That computation is now one of the oldest ideas built into Bitcoin.

Reference external source

https://cr.yp.to/djb.html
The index page of Bernstein's own site. It links to his research, his software, and the records of his lawsuit.

Other external sources

Show 2 more

Appearances

3 entries / 1 thread