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
Add backward compatibility tests
6 years ago
crypto check for valid Equihash <n,k> solutions 6 years ago
support Initial Commit 6 years ago
test Add backward compatibility tests 6 years ago
LICENSE Update LICENSE 6 years ago
README.md Update README.md 6 years ago
arith_uint256.cpp Changes on Equihash Tests 6 years ago
arith_uint256.h Changes on Equihash Tests 6 years ago
binding.gyp support macOS 6 years ago
equihashverify.cc Backward compatibility 6 years ago
index.js Initial Commit 6 years ago
package.json check for valid Equihash <n,k> solutions 6 years ago
random.cpp Initial Commit 6 years ago
random.h Initial Commit 6 years ago
serialize.h support macOS 6 years ago
test.js Add backward compatibility tests 6 years ago
tinyformat.h Initial Commit 6 years ago
uint256.cpp Initial Commit 6 years ago
uint256.h Initial Commit 6 years ago
util.cpp Remove unused utiltime.cpp 6 years ago
util.h Removed Boost Tests, changed install for node-glyp, Added libsodium and boostlib 6 years ago
utilstrencodings.cpp Initial Commit 6 years ago
utilstrencodings.h Initial Commit 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