UNPKG

merkle-t

Version:

Merkle Tree with Poseidon Hash in TypeScript

10 lines (9 loc) 443 B
import { Leaf, LeafInputs, OrderedLeaf } from "./leaf"; import { MerkleTree, MerkleTreeOptions } from "./tree"; export { Leaf, LeafInputs, OrderedLeaf, MerkleTree, MerkleTreeOptions }; export declare class FullMerkleTree extends MerkleTree { private leavesInputs; constructor(leavesInputs: LeafInputs[], options?: MerkleTreeOptions); insert(leafInput: LeafInputs): void; update(key: LeafInputs, leafInput: LeafInputs): void; }