erasure-merkle
v0.0.3
Published
For storing a list of addresses.
Downloads
11
Readme
Erasure's Merkle Tree Implementation
For storing a list of addresses.
Usage
import MerkleTree, { checkProof } from "erasure-merkle";
const tree = MerkleTree.build([address1, address2, address3]);
console.log(tree.rootHash);
// => hex string
// To prove inclusion in tree:
const proof = tree.proof(address1)
// => [hash, hash]
// Later, on some other computer:
checkProof(address1, proof);
// => true