UNPKG

@mcaptcha/pow_sha256-polyfill

Version:
8 lines (7 loc) 309 B
export declare const digest: (message: string) => Promise<number[]>; export declare const score: (hash: number[]) => BigInt; export declare type WasmWork = { result: string; nonce: number; }; export declare const generate_work: (salt: string, phrase: string, difficulty: number) => Promise<WasmWork>;