You can install merkleTree with yarn:
yarn add merkleTree
or npm:
npm install merkleTree
or pnpm:
pnpm add merkleTree
- plant tree with whitelist
const TREE = plantTree(WHITELIST)
- get root
const ROOT = getRoot(TREE)
- get proof
const proof = getProof(WHITELIST, TREE, LEAF)