BOMBARCHIVE
Explore

A living reference collection. Written in the wiki, preserved in Git.

The archiveBitcoin

Hashcash

Hashcash is a proof-of-work cost-function proposed by Adam Back in the 1990s to make abuse of otherwise unmetered network resources expensive. It was designed around a simple asymmetry: creating a valid stamp should require adjustable computation, while checking the stamp should be cheap.

Bitcoin later reused that proof-of-work idea for a very different job: ordering and defending a shared transaction history.

1992: computational pricing before Hashcash

Five years before the surviving Hashcash announcement, Cynthia Dwork and Moni Naor presented Pricing via Processing at CRYPTO '92. Their proposal required a requester to evaluate a deliberately moderately expensive function while making verification cheap. Resistance to amortization was explicit: preparation for many requests should not make each later request dramatically cheaper. Cynthia Dwork publication record Author-hosted full paper

Its pricing-function candidates were number-theoretic constructions rather than a Hashcash-style partial-collision search. The email design also assumed a pricing authority and optional secret shortcut for trusted agents. Author-hosted full paper

28 March 1997: working code, not just a sketch

On 28 March 1997, Back announced a “hash cash postage implementation” to the Cypherpunks mailing list. The surviving message describes partial-hash-collision stamps whose cost could be increased by requiring more matching hash bits, while verification remained cheap. It also links a first-cut implementation and walks through generating, checking and rejecting stamps. Direct contemporary mailing-list record

The implementation was already doing more than raw hashing. Stamps were tied to a service string, could have a validity period, and could be recorded in a local database so the same stamp would be rejected if presented again. In the email-postage application, the computation was the postage; no money had to change hands.

The announcement explicitly compared this with DigiCash. Back suggested services could accept either ordinary digital-cash postage or hash-collision postage. His case for Hashcash was partly practical: it required no account and no monetary payment, only local computation. Direct contemporary mailing-list record

29 March 1997: the first external test and a precise target

The announcement was followed almost immediately by a report from someone other than its author. At 02:24 UTC on 29 March 1997, less than ten hours after the archived announcement's received timestamp, Anil Das replied that he had run the supplied SHA-1 tests successfully on a big-endian MIPS R10000 system. His pasted hashcash -t -22 output reports 70,921 hashes per second and an estimated 30 seconds to find a 22-bit partial collision. Back's original announcement had shown about 7,200 hashes per second on his own machine. These are contemporary user-reported benchmark outputs, not a reproduced BOMB execution, an actual 30-second solve trace or evidence that a production mail service was accepting stamps. Anil Das, 29 March 1997 — contemporary test reply · Back's original example

Back's 29 March answer clarifies what that first implementation was searching for. It hashed a day-count and resource name to obtain a reference digest, then tried counters until the resulting SHA-1 digest agreed with the reference in its first n most-significant bits. In schematic form, it compared the first n bits of H(day || resource) with H(day || resource || counter). That is a specified-prefix match, not a search for two arbitrary matching messages, and not literally a requirement that the leading bits be zero. The latter shorthand is common in explanations of later hash-target proof of work but loses a property of this 1997 version. Back described this as a SHA-1 search and contrasted it with general birthday-collision attacks. Adam Back, 29 March 1997 — direct explanation · Original worked example

The exchange also supplies first-party intellectual context. Back wrote that a recent Daniel J. Bernstein sci.crypt post about partial MD5 collisions had prompted him to consider anonymous computational postage. He said he already knew Rivest and Shamir's MicroMint micropayment proposal and that Hal Finney had described it on the list. That is Back's contemporary account of what got him thinking, not evidence that the mechanisms were identical or that BOMB has recovered Bernstein's original post. It complements, rather than overrides, Back's later acknowledgement of the earlier Dwork–Naor paper, which he said he had not known in 1997. Back's reply — contemporary first-party account

A date disagreement inside the primary record

The direct mailing-list artifact is dated 28 March 1997. Back's later paper, dated 1 August 2002, says Hashcash was originally proposed in May 1997 and cites its own earlier Hashcash reference that way. 2002 paper

BOMB therefore uses 28 March as the earliest currently verified public implementation announcement and preserves the May date as a later first-party recollection rather than silently choosing whichever date makes the timeline tidier.

December 1998: Hashcash meets b-money

On 6 December 1998 UTC, Adam Back publicly discussed b-money on the Cypherpunks list and proposed Hashcash as a candidate function for Wei Dai's decentralized minting idea. This distinction matters: Dai's original proposal described generic measurable computational problems; Back was the one who explicitly joined that monetary design to Hashcash in the surviving discussion. Contemporary mailing-list record

2002: the cost-function is formalised

Back's 2002 paper describes Hashcash as a non-interactive, publicly auditable, trapdoor-free cost-function with probabilistic cost. A client searches for a value satisfying a partial-hash target; anyone can cheaply verify the resulting token. Primary paper

The paper also records an important piece of ancestry that simplified retellings often lose: Back says he was unaware in 1997 of earlier work by Cynthia Dwork and Moni Naor on CPU pricing to combat junk email. Hashcash is therefore a crucial proof-of-work ancestor of Bitcoin without being the invention of the general idea that computation can price access to a resource. Primary paper

The paper notes further improvements suggested by Hal Finney and Thomas Boschloo, including using a fixed target for the partial collision rather than hashing the service name into the target. That detail matters historically because “Hashcash” itself evolved after the first implementation. Primary paper

2004: from one-use stamps to transferable scarcity

On 15 August 2004, Finney announced RPOW, a running system which accepted Hashcash proofs and returned RSA-signed replacement tokens of equal work value. Each individual input remained single-use, but its represented scarcity could survive through a chain of replacement tokens. Contemporary first-party announcement

This is a descendant of Hashcash rather than a change to the Hashcash protocol itself. RPOW adds a durable spent-token database, token signatures and an attested exchange server because it is trying to preserve proof-of-work-derived scarcity across holders. Bitcoin later attacks transferable value and double spending with a very different architecture. Reusable proofs of work follows that branch separately.

What Bitcoin borrowed

The Bitcoin white paper is explicit. Its proof-of-work section says the peer-to-peer timestamp server needs a proof-of-work system '''similar to Adam Back's Hashcash**. Bitcoin searches for a block nonce that makes the SHA-256 block hash satisfy a target, and the required work can be checked cheaply. Bitcoin white paper

But Bitcoin changes the role of that work.

In Hashcash, a stamp proves that someone spent computation for a particular service or message. In Bitcoin, proof-of-work is attached to a block in a shared history. Each block commits to the previous one, so rewriting an old block means redoing its work and the work accumulated after it. The white paper also uses proof-of-work as the weight in network decision-making and connects block production to new-coin issuance and transaction fees. Bitcoin white paper

That is a structural shift from computational postage to **computational history'''.

August 2008: Satoshi contacts Back

A correspondence chain made public as evidence in the 2024 COPA v. Wright trial provides unusually direct evidence of Hashcash's place in Bitcoin's immediate prehistory.

On 20 August 2008, Satoshi Nakamoto emailed Back to check the citation for the 2002 Hashcash paper and described Bitcoin's then-unreleased design as a new use of hash-based proof-of-work for electronic cash. The draft already described a peer-to-peer network building an ongoing chain of proof-of-work. Transcript of trial-disclosed correspondence

Back replied by pointing Satoshi to b-money. Satoshi answered the following day that he had not previously known the b-money page and said the main addition in his own system was to use proof-of-work to support a distributed timestamp server while the same work also generated new coins. He contacted Wei Dai after that exchange to obtain the correct b-money publication date for the paper. Transcript of trial-disclosed correspondence

What did not carry forward

Several Hashcash properties should not be projected onto Bitcoin.

  • A Hashcash stamp was scoped to a service or resource; Bitcoin proof-of-work competes over a shared block history.
  • Hashcash's anti-reuse database was a service-side mechanism for spent stamps; Bitcoin's double-spend problem is resolved through transaction validation plus agreement on chain history.
  • Hashcash did not define a native transferable currency supply. Bitcoin rewards valid block production with newly issued bitcoin and fees.
  • Hashcash originally used SHA-1 partial collisions; Bitcoin's proof-of-work uses double SHA-256 on block headers.
  • Hashcash could expire stamps to bound a local spent-token database. Bitcoin does not discard old blocks because their proof-of-work stamp “expired.”

The inheritance is a primitive, not an entire architecture.

Open research

Open question
Find contemporary 1992–1997 evidence for how the Dwork–Naor pricing-function work circulated before Hashcash. Chronology alone should not be upgraded into a direct influence claim, especially because Back later said he had been unaware of the work in 1997.
Open question
Trace which Hashcash implementation details, rather than merely the high-level proof-of-work idea, can be shown to have influenced early Bitcoin code.