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.

32 lines
594 B

6 years ago
# Equihash - Zcash Implementation
6 years ago
nodejs native binding to check for valid Equihash solutions
6 years ago
# Dependencies
````
6 years ago
sudo apt-get install build-essential libsodium-dev libboost-system-dev
6 years ago
````
6 years ago
# Usage
6 years ago
````javascript
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);
6 years ago
//returns boolean
````
6 years ago
# Backward compatibility
````javascript
ev.verify(header, solution);
````
6 years ago
# Test Suite:
````
6 years ago
sudo npm install -g mocha
6 years ago
npm install
6 years ago
mocha
6 years ago
````