@mcaptcha/pow_sha256-polyfill
Version:
<div align="center">
8 lines (7 loc) • 309 B
TypeScript
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>;