UNPKG

@chainsafe/eth2.0-utils

Version:

Utilities required across multiple lodestar packages

16 lines (15 loc) 412 B
import { MerkleTree, number64, bytes32, Root } from "@chainsafe/eth2.0-types"; export interface IProgressiveMerkleTree { depth(): number; /** * push new item into the tree */ push(item: bytes32): void; add(index: number64, item: bytes32): void; getProof(index: number64): bytes32[]; /** * The merkle root of the tree */ root(): Root; toObject(): MerkleTree; }