@chainsafe/persistent-merkle-tree
Version:
Merkle tree implemented as a persistent datastructure
15 lines (14 loc) • 368 B
TypeScript
import { Node } from "./node.ts";
/**
* Return the `Node` at a specified height from the merkle tree made of "zero data"
* ```
* ...
* /
* x <- height 2
* / \
* x x <- height 1
* / \ / \
* 0x0 0x0 0x0 0x0 <- height 0
* ```
*/
export declare function zeroNode(height: number): Node;