UNPKG

@iden3/js-jsonld-merklization

Version:
10 lines (9 loc) 362 B
import { Hasher } from './types/types'; export declare class PoseidonHasher implements Hasher { private readonly _hasher; constructor(_hasher?: typeof import("@iden3/js-crypto").Poseidon); hash(inp: bigint[]): Promise<bigint>; hashBytes(b: Uint8Array): Promise<bigint>; prime(): bigint; } export declare const DEFAULT_HASHER: PoseidonHasher;