1.0.1 • Published 2 years ago

merkletree-kotard v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Merkle Tree for solidity

installation

You can install merkleTree with yarn:

yarn add merkletree-kotard

or npm:

npm install merkletree-kotard

or pnpm:

pnpm add merkletree-kotard

Usage

  1. plant tree with whitelist
const TREE = plantTree(WHITELIST)
  1. get root
const ROOT = getRoot(TREE)
  1. get proof
const proof = getProof(WHITELIST, TREE, LEAF)