toffick / equihashverify-btg

Reference implementation of a Equihash-BTG validation library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Equihash - Bitcoin Gold Implementation

nodejs native binding to check for valid Equihash-BTG (144, 5) 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

ev.verify(header, solution);
//returns boolean

Test Suite:

sudo npm install -g mocha
npm install
mocha

About

Reference implementation of a Equihash-BTG validation library

License:MIT License


Languages

Language:C++ 95.0%Language:JavaScript 2.8%Language:C 1.6%Language:Python 0.7%