From 4c48879b61fd61da2eae7db01968686a2aa62577 Mon Sep 17 00:00:00 2001 From: LiteCoinZ <33730928+litecoinz-project@users.noreply.github.com> Date: Mon, 11 Jun 2018 11:07:23 +0200 Subject: [PATCH] Update README.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5ad0700..6bfc2a0 100644 --- a/README.md +++ b/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