AoD-Technologies / equihashverify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:MIT License


Languages

Language:C++ 93.8%Language:JavaScript 4.0%Language:C 1.5%Language:Python 0.7%