JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q19493F
  • License ISC

merkel tree generator for any given list

Package Exports

  • merkel-tree

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (merkel-tree) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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()