@kevincharm/sparse-merkle-tree
Version:
Sparse Merkle Tree implementation in Solidity with accompanying JS library
16 lines (15 loc) • 456 B
TypeScript
export declare function keccak(...bytes: bigint[]): bigint;
/**
* Default deserialiser hexstring -> bigint
*
* @param input Hex string e.g. "0xcafebabe"
* @returns internal bigint representation
*/
export declare function deserialise(input: string): bigint;
/**
* Default serialiser bigint -> 0-padded 32-byte hexstring
*
* @param input bigint
* @returns zero-padded 32-byte hexstring
*/
export declare function serialise(input: bigint): string;