@chainsafe/eth2.0-utils
Version:
Utilities required across multiple lodestar packages
19 lines (18 loc) • 517 B
TypeScript
import { bytes32, Root } from "@chainsafe/eth2.0-types";
/**
* Only usable if we need proof and root of adding single element.
* Element proof gets invalid if you add another element.
*/
export declare class LightProgressiveMerkleTree {
private _depth;
private _count;
private _branch;
private _zerohashes;
constructor(depth: number);
count(): number;
depth(): number;
push(item: bytes32): bytes32[];
clone(): LightProgressiveMerkleTree;
root(): Root;
private _proof;
}