Proof of work
Proof of work is a simple method of rate limiting and spam reduction. The most famous use case for it is Bitcoin. But it has also been used for website rate limiting, and email spam filtering.
Basic idea of proof-of-work.
- I want to prove that I did some amount of computation for ID XYZ.
- I hash XYZ + a counter. I count the number of leading 0 bits in the hash.
- If the number of 0 bits is greater than the difficulty, I am done.
- Otherwise, I increment the counter and try again.
One of the earlier examples of proof-of-work is Hashcash.
Backlinks
Leave a Comment