You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
s0n1k
7a7403b229
|
6 years ago | |
---|---|---|
crypto | 6 years ago | |
support | 6 years ago | |
test | 6 years ago | |
LICENSE | 6 years ago | |
README.md | 6 years ago | |
arith_uint256.cpp | 6 years ago | |
arith_uint256.h | 6 years ago | |
binding.gyp | 6 years ago | |
equihashverify.cc | 6 years ago | |
index.js | 6 years ago | |
package.json | 6 years ago | |
random.cpp | 6 years ago | |
random.h | 6 years ago | |
serialize.h | 6 years ago | |
test.js | 6 years ago | |
tinyformat.h | 6 years ago | |
uint256.cpp | 6 years ago | |
uint256.h | 6 years ago | |
util.cpp | 6 years ago | |
util.h | 6 years ago | |
utilstrencodings.cpp | 6 years ago | |
utilstrencodings.h | 6 years ago |
README.md
Equihash - Zcash Implementation
nodejs native binding to check for valid Equihash solutions
Dependencies
sudo apt-get install build-essential libsodium-dev libboost-system-dev
Usage
var ev = require('bindings')('equihashverify.node');
var header = new Buffer(..., 'hex');
var solution = new Buffer(..., 'hex'); //do not include byte size preamble "fd4005"
ev.verify(header, solution, n, k);
//returns boolean
Backward compatibility
ev.verify(header, solution);
Test Suite:
sudo npm install -g mocha
npm install
mocha