UNPKG

nanocurrency

Version:

A toolkit for the Nano cryptocurrency, allowing you to derive keys, generate seeds, hashes, signatures, proofs of work and blocks.

18 lines (17 loc) 583 B
export declare const DEFAULT_WORK_THRESHOLD = "ffffffc000000000"; /** Validate work parameters. */ export interface ValidateWorkParams { /** The block hash to validate the work against */ blockHash: string; /** The work to validate */ work: string; /** The threshold to validate against. Defaults to ffffffc000000000 */ threshold?: string; } /** * Validate whether or not the work value meets the difficulty for the given hash. * * @param params - Parameters * @returns Valid */ export declare function validateWork(params: ValidateWorkParams): boolean;