Types
API
| Function | Signature |
|---|---|
from | (leaves: Hash[]) => Effect<MerkleTreeType, Error> |
getProof | (leaves, index) => Effect<MerkleProofType, Error> |
verify | (proof, root) => Effect<boolean, Error> |
Schema | Tree schema |
ProofSchema | Proof schema |
Merkle tree construction and proof verification
| Function | Signature |
|---|---|
from | (leaves: Hash[]) => Effect<MerkleTreeType, Error> |
getProof | (leaves, index) => Effect<MerkleProofType, Error> |
verify | (proof, root) => Effect<boolean, Error> |
Schema | Tree schema |
ProofSchema | Proof schema |