Browse Source

Update README.md

master
LiteCoinZ 6 years ago
committed by GitHub
parent
commit
4c48879b61
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      README.md

8
README.md

@ -6,7 +6,7 @@ nodejs native binding to check for valid Equihash solutions
sudo apt-get install build-essential libsodium-dev libboost-system-dev
````
# Usage:
# Usage
````javascript
var ev = require('bindings')('equihashverify.node');
@ -16,6 +16,12 @@ var solution = new Buffer(..., 'hex'); //do not include byte size preamble "fd40
ev.verify(header, solution, n, k);
//returns boolean
````
# Backward compatibility
````javascript
ev.verify(header, solution);
````
# Test Suite:
````
sudo npm install -g mocha

Loading…
Cancel
Save