0.0.3 • Published 6 years ago

erasure-merkle v0.0.3

Weekly downloads
9
License
-
Repository
-
Last release
6 years ago

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
0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago