Skip to content

vanteer/beamhashverify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BeamHash Implementation

nodejs native binding to check for valid Beamhash solutions

Dependencies

sudo apt-get install build-essential libsodium-dev libboost-system-dev

Usage

var eb = require('bindings')('beamhashverify.node');

var header = new Buffer(..., 'hex');
var solution = new Buffer(..., 'hex'); //do not include byte size preamble "fd4005"

eb.verify(header, nonce, solution, 0); // default is 2=BeamHashIII, 0=BeamHashI, 1=BeamHashII
//returns boolean

Backward compatibility

ev.verify(header, nonce, solution);

Test Suite:

sudo npm install -g mocha
npm install
mocha

About

equihashverify for Beam

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 78.5%
  • C 18.0%
  • JavaScript 2.9%
  • Python 0.6%