* Finds a nonce that satisfies the Nano proof-of-work requirements.
*
* @param {string} hash - Hexadecimal hash of previous block, or public key for new accounts
- * @param {number} [threshold=0xfffffff8] - Difficulty of proof-of-work calculation
+ * @param {NanoPowOptions} options - Options used to configure search execution
*/
static async search (hash: string, options?: NanoPowOptions): Promise<string> {
if (this.#busy) {
*
* @param {string} work - Hexadecimal proof-of-work value to validate
* @param {string} hash - Hexadecimal hash of previous block, or public key for new accounts
- * @param {number} [threshold=0xfffffff8] - Difficulty of proof-of-work calculation
+ * @param {NanoPowOptions} options - Options used to configure search execution
*/
static async validate (work: string, hash: string, options?: NanoPowOptions): Promise<boolean> {
if (this.#busy) {
*/
export declare class NanoPowGl {
#private
+ static get size (): number | undefined
/** Compile */
static init (): Promise<void>
static reset (): void
* Finds a nonce that satisfies the Nano proof-of-work requirements.
*
* @param {string} hash - Hexadecimal hash of previous block, or public key for new accounts
- * @param {number} [threshold=0xfffffff8] - Difficulty of proof-of-work calculation
+ * @param {NanoPowOptions} options - Options used to configure search execution
*/
static search (hash: string, options?: NanoPowOptions): Promise<string>
/**
*
* @param {string} work - Hexadecimal proof-of-work value to validate
* @param {string} hash - Hexadecimal hash of previous block, or public key for new accounts
- * @param {number} [threshold=0xfffffff8] - Difficulty of proof-of-work calculation
+ * @param {NanoPowOptions} options - Options used to configure search execution
*/
static validate (work: string, hash: string, options?: NanoPowOptions): Promise<boolean>
}