equihashjs-verify
JavaScript check for valid Equihash solutions. Ported from ZCASH on Python
https://github.com/zcash/zcash/blob/master/qa/rpc-tests/test_framework/equihash.py
ZCASH implementation:Installation
npm install equihashjs-verify
Usage
var eq = var equihash = eqnetworksbitcoingold var header = ... 'hex' // include nonce in the headervar solution = ... 'hex' // do not include byte size preamble "fd4005" var valid = equihash//returns boolean
var eq = var equihash = eqnetworksbitcoingold var header = ... 'hex' // nonce may not be included in the headervar solution = ... 'hex' // do not include byte size preamble "fd4005"var nonce = ... 'hex' var valid = equihash//returns boolean