merkletreejs
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -140,4 +140,4 @@ const reverse = require('buffer-reverse') | ||
getProof(leaf, index) { | ||
leaf = bufferify(leaf); | ||
const proof = []; | ||
leaf = bufferify(leaf) | ||
const proof = [] | ||
@@ -144,0 +144,0 @@ if (typeof index !== 'number') { |
{ | ||
"name": "merkletreejs", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "Construct Merkle Trees and verify proofs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -252,5 +252,5 @@ const test = require('tape') | ||
t.plan(1) | ||
let leaves = ['a', 'b', 'c'].map(x => sha3(x).toString('hex')); | ||
const tree = new MerkleTree(leaves, SHA256); | ||
const root = '311d2e46f49b15fff8b746b74ad57f2cc9e0d9939fda94387141a2d3fdf187ae'; | ||
let leaves = ['a', 'b', 'c'].map(x => sha3(x).toString('hex')) | ||
const tree = new MerkleTree(leaves, SHA256) | ||
const root = '311d2e46f49b15fff8b746b74ad57f2cc9e0d9939fda94387141a2d3fdf187ae' | ||
t.equal(tree.getRoot().toString('hex'), root) | ||
@@ -302,3 +302,3 @@ }) | ||
t.equal(verifications.every(Boolean), true) | ||
}); | ||
}) | ||
@@ -305,0 +305,0 @@ test('crypto-js bufferify', t => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
258228