proof-of-work mechanism