1.0.4 • Published 6 years ago

merkel-tree v1.0.4

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

merkel-tree

Javascript package to create a merkel tree and and do operations on it.

This package has 3 functions :

make - The Merkel tree is created on the string array instantiated with the class.
getRoot - Returns the hash of the Merkel Root.
fetchOldTransaction - Returns all the previous transactions which occurred on the tree as a dictionary.

Installation

npm i merkel-tree

Usage

var newTree = new MerkelTree(["a","b","c"])
newTree.make() newTree.getRoot()

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago