@authenticid-labs/merkle-tree-proof
v0.0.7
Published
prove that an element is a valid member of a Merkle tree on chain with realid.eth
Downloads
45
Maintainers
Readme
npm i @authenticid-labs/merkle-tree-proof
or
yarn add @authenticid-labs/merkle-tree-proof
Usage
const { generateMerkleTreeRoot, generateMerkleTree, doMerkleProof, getMerkleTreeRoot } = require('@authenticid-labs/merkle-tree-proof');
const root = await getMerkleTreeRoot(provider, wallet_address);
const tree = generateMerkleTree(input: string[]);
const success = doMerkleProof(tree: MerkleTree, toTest: string, root: string);