proof of work
termKept in this browser · My desk
A challenge that makes a client spend computation that is costly to produce and cheap to check, typically finding a number whose hash has a given number of leading zeros, so that acting many times costs more than acting once.
Proposed against junk mail in 1992 and as hashcash in 1997, it is now used by Bitcoin and, since 2025, by gates such as Anubis against AI scrapers; Turnstile and Friendly Captcha fold it into their checks. Its weakness is economic: attackers choose fast hardware, honest visitors run what they own.
What it is. A proof of work is a challenge that makes a client spend computation that is costly to produce and cheap to check. The usual form asks for a number, a nonce, that makes the hash of a given challenge begin with a set number of zeros: finding it takes many tries, checking it takes one. Acting once then costs little, and acting a million times costs a million times as much.
Origins. Cynthia Dwork and Moni Naor proposed at CRYPTO 1992 that a user compute a moderately hard, but not intractable, function to gain access to a resource, to prevent frivolous use such as junk mail. Their pricing functions were number-theoretic: extracting square roots modulo a prime, the Fiat-Shamir signature scheme and the Ong-Schnorr-Shamir scheme (already cracked, as they noted), and they allowed a "shortcut", a trapdoor that let the resource manager grant cheap access by bypassing the computation. Adam Back proposed hashcash in May 1997 to throttle systematic abuse of un-metered internet resources such as email and anonymous remailers, and described it in 2002 as a hash-based proof-of-work token, a denial-of-service counter-measure. Hashcash drops the trapdoor: its cost function is finding partial hash collisions with the all-zero string, for which the fastest algorithm is brute force, and in its non-interactive form the client chooses its own random challenge, which suits store-and-forward mail; an interactive variant serves connections where the server can issue the challenge. Markus Jakobsson and Ari Juels formalized the notion and the name in 1999: in a proof of work, they wrote, a prover demonstrates that she has performed a certain amount of computational work in a specified interval of time, and a "bread pudding" protocol is one whose wasted effort is harvested for a separate useful computation, as stale bread is reused in the dish.
The arithmetic. A SHA-256 (Secure Hash Algorithm, 256-bit) hash written in hexadecimal has 64 digits, each one of 16 values, so the chance that a random hash starts with d zeros is (1/16)^d and the expected work is 16^d hashes: 65,536 for four zeros, 1,048,576 for five, while the verifier computes one. Counted in bits, k leading zero bits cost 2^k tries, so five hexadecimal zeros are the same as 20 zero bits (2^20 = 1,048,576).
A toy, worked. Take the challenge "glossary:" and try nonces 0, 1, 2 and so on until SHA-256 of "glossary:" followed by the nonce begins with zeros. One leading zero first appears at nonce 4 (5 tries, against 16 expected); two zeros at nonce 276 (277 tries, against 256 expected); three at nonce 1,133 (1,134 tries, a lucky run against 4,096 expected); four at nonce 107,820 (107,821 tries, an unlucky one against 65,536). The verifier recomputes a single hash for each. The spread is the point: the cost is predictable on average and random in any one case.
Bitcoin. Satoshi Nakamoto's paper of 2008 used a proof-of-work system "similar to Adam Back's Hashcash" to build a distributed timestamp server: nodes increment a nonce in the block until the block's SHA-256 hash begins with the required number of zero bits; the average work is exponential in that number and a single hash verifies it; the difficulty follows a moving average that targets a number of blocks per hour; and the longest chain is proof that it came from the largest pool of CPU (central processing unit) power, so as long as honest nodes control most of it they outpace attackers. Ethereum left proof of work on 15 September 2022, when the Merge moved it to proof of stake and, by ethereum.org's account, cut its energy consumption by about 99.95 per cent.
Against bots and scrapers. Anubis, announced in January 2025 by Xe Iaso and adopted by projects such as GNOME and the Linux kernel mailing list archive, sends browsers that claim to be Mozilla-compatible a SHA-256 challenge with a customizable difficulty; its design pages give the default as 5 leading zeros, while LWN reported a default difficulty of 4. A client that passes gets a signed cookie, so a scraper pays once per cookie rather than per page. Cloudflare's Turnstile counts proof of work among its rotating non-interactive challenges, and Friendly Captcha serves a cryptographic puzzle solved by the user's device, raising its difficulty with a risk score so that abusers pay more.
The objection. Ben Laurie and Richard Clayton calculated in 2004 that stopping spam this way would limit senders to about 1,750 messages a day, or 250 if spammers controlled a million compromised machines, levels many legitimate senders exceeded: proof of work "will not be a solution to the problem of spam". The 1,750 follows from setting each message's calculation to at least 50 seconds, since a day has 86,400 seconds and 86,400 / 50 = 1,728. They also noted the spread of hardware: work that might take 10 seconds on a 3 GHz Pentium could take an hour or more on a Palm Pilot, which is why Dwork and colleagues had proposed puzzles bound by memory access, whose speed varies far less between machines. The economics cut against the defender: attackers choose fast hardware or other people's computers, while honest visitors run whatever they own, so a puzzle hard enough to slow a farm of servers is slow for an old phone. The W3C (World Wide Web Consortium) note on the CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) observes that it poses no direct accessibility problem but may slow users of older hardware.
Neighbours. Hash, nonce, Turnstile, CAPTCHA, Privacy Pass (which replaces repeated work with tokens), blockchain, DDoS (distributed denial of service).
Also known as: proof of work, PoW, client puzzle, hashcash, computational challenge
Sources
- Cynthia Dwork and Moni Naor, Pricing via Processing or Combatting Junk Mail, CRYPTO 1992: a moderately hard but not intractable function to gain access to a resource (read 2026-11-23)
- Adam Back, Hashcash: A Denial of Service Counter-Measure, 1 August 2002: proposed in May 1997; hash-based proof-of-work token (read 2026-11-23)
- Ben Laurie and Richard Clayton, Proof-of-Work Proves Not to Work, University of Cambridge, 2004: limits of 1,750 or 250 messages a day would hamper legitimate senders (read 2026-11-23)
- Techaro, Why does Anubis use Proof-of-Work?, documentation source: SHA-256 with leading zeros; one hash to verify; inspired by Hashcash (read 2026-11-23)
- Joe Brockmeier, Anubis sends AI scraperbots to a well-deserved fate, LWN.net, 10 July 2025: default difficulty 4; adopters; Duke pilot (read 2026-11-23)
- Cloudflare Blog, Announcing Turnstile, 28 September 2022: rotating non-interactive challenges (proof of work, proof of space, web API probes); session data; no cookies; single-use tokens; Private Access Tokens built in (read 2026-11-23)
- W3C, Inaccessibility of CAPTCHA, Group Draft Note, 16 December 2021: CAPTCHA prevents people with disabilities from completing tasks; proof of work poses no direct accessibility problem but slows old hardware; Privacy Pass praised (read 2026-11-23)
- Markus Jakobsson and Ari Juels, Proofs of Work and Bread Pudding Protocols, 1999, author's copy (read 2026-11-23): formalizes the notion of a proof of work (a prover demonstrates a certain amount of computational work in a specified interval of time); bread pudding protocols harvest the effort for a separate useful computation
- Satoshi Nakamoto, Bitcoin: A Peer-to-Peer Electronic Cash System, 2008, bitcoin.org (read 2026-11-23): proof of work similar to Adam Back's Hashcash; scanning for a value whose SHA-256 hash begins with a number of zero bits; average work exponential in the zero bits, verified with a single hash; nonce incremented in the block; difficulty by a moving average targeting blocks per hour; longest chain from the largest pool of CPU power
- ethereum.org, The Merge, page updated 29 October 2026 (read 2026-11-23): executed on 15 September 2022; Ethereum's move from proof of work to proof of stake; energy consumption reduced by about 99.95 per cent
- Techaro, How Anubis works, documentation source (read 2026-11-23): a proof-of-work challenge to ensure clients use a modern browser able to compute SHA-256; customizable difficulty, default 5 leading zeroes; challenge presented when the User-Agent contains 'Mozilla'
- Friendly Captcha, developer documentation, introduction (v2) (read 2026-11-23): a cryptographic puzzle solved by the user's device; difficulty raised by a risk score; no reliance on tracking or cookies