Mtree
JavaScript implementation of Merkle Trees.
Usage
Install with NPM.
npm install mtree --save
Use in your project.
var MerkleTree = ;var tree = /* input hashes */; tree; // returns the tree depthtree; // return the number of levels in treetree; // returns the nodes at the given leveltree; // returns the merkle root for the treetree; // returns the number of nodes in the tree
Run the tests.
npm run testsuitenpm run linternpm run coverage