Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 643 Bytes

README.md

File metadata and controls

16 lines (9 loc) · 643 Bytes

Proof of Work Sample

This is a simple implementation of the hashcash technique to prevent a user from spamming requests to the server, asking the user a proof of work

The idea is to ask the client to perform a hash operation on a random string increasing the match zero bits each time

You can se more details about the hashcash on wikipedia

You can see this sample running here

For this sample I limit the compare to 20 bits to avoid client browser crash.

License

MIT