UNPKG

@chainsafe/persistent-merkle-tree

Version:

Merkle tree implemented as a persistent datastructure

6 lines (5 loc) 358 B
import { Gindex } from "../gindex.ts"; import { Node } from "../node.ts"; export declare const ERR_INVALID_NAV = "Invalid tree navigation"; export declare function createSingleProof(rootNode: Node, index: Gindex): [Uint8Array, Uint8Array[]]; export declare function createNodeFromSingleProof(gindex: Gindex, leaf: Uint8Array, witnesses: Uint8Array[]): Node;