nanpow
Version:
This repository contains a WebAssembly based multi-threaded PoW generator.
9 lines • 486 B
TypeScript
/**
* Calculates PoW based on the provided hash and difficulty
* @param hash - The hash to calculate PoW for
* @param difficulty - The difficulty of the PoW to calculate for
* @param blockSize - Optional custom block size to use
* @param threadDimension - Optional custom thread dimension to use
*/
export declare function getWork(hash: Uint8Array, difficulty: number, blockSize?: number, threadDimension?: number): Promise<Uint8Array>;
//# sourceMappingURL=index.d.ts.map