Name: equihash
Owner: Digital Bazaar, Inc.
Description: Equihash Proof of Work for Node.js
Created: 2017-07-05 17:43:10.0
Updated: 2017-12-28 05:08:20.0
Pushed: 2017-10-03 21:26:22.0
Size: 112
Language: C++
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Equihash is a tunable asymmetric proof of work algorithm where it is difficult to generate a proof, but easy to verify one. The algorithm makes it difficult to build custom hardware to generate the proof by ensuring forced CPU and memory trade offs. The algorithm is useful for cryptocurrency mining as well as building solutions that require a proof of work capability.
install equihash
t equihash = require('equihash')('khovratovich');
nput seed for equihash (up to 512 bits)
t input = crypto.createHash('sha256').update('test1234', 'utf8').digest();
t options = {
90,
5
hash.solve(input, options, (err, proof) => {
(err) {
return console.log('Failed to generate proof:', err);
nsole.log('Equihash proof:', proof)
nsole.log('Valid proof? ', equihash.verify(input, proof));
install
run test