merkle-t
Version:
Merkle Tree with Poseidon Hash in TypeScript
7 lines (6 loc) • 355 B
TypeScript
import { Leaf } from "./leaf";
import { Binary } from "./proof";
export declare const chunk: (arr: bigint[], size: number) => bigint[][];
export declare const zip: (arr1: Binary[], arr2: Leaf[]) => [Binary, Leaf][];
export declare const toBinary: (decimal: number, depth: number) => Binary[];
export declare const toDecimal: (binary: Binary[]) => number;