import { MerkleTree } from "https://deno.land/x/lucid@0.5.2/src/mod.ts";
Static Methods
private
buildRecursively(data: Array<Uint8Array>, isHash?: boolean): Promise<MerkleNode | null>fromHashes(hashes: Array<Hash>)
Construct Merkle tree from sha256 hashes
new(data: Array<Uint8Array>)
Construct Merkle tree from data, which get hashed with sha256
verify(): Promise<boolean>
data: Uint8Array,
rootHash: Hash,
proof: MerkleTreeProof,