UNPKG

@ethereumjs/mpt

Version:

Implementation of the modified merkle patricia tree as specified in Ethereum's yellow paper.

14 lines 604 B
import type { BranchMPTNodeBranchValue, NodeReferenceOrRawMPTNode } from '../types.ts'; export declare class BranchMPTNode { _branches: BranchMPTNodeBranchValue[]; _value: Uint8Array | null; constructor(); static fromArray(arr: Uint8Array[]): BranchMPTNode; value(v?: Uint8Array | null): Uint8Array | null; setBranch(i: number, v: BranchMPTNodeBranchValue): void; raw(): BranchMPTNodeBranchValue[]; serialize(): Uint8Array; getBranch(i: number): BranchMPTNodeBranchValue; getChildren(): [number, NodeReferenceOrRawMPTNode][]; } //# sourceMappingURL=branch.d.ts.map