Skip to main content

Class: LocalPowProvider

Local POW Provider. WARNING - This is really slow.

Implements

Table of contents

Methods

Methods

pow

pow(block, targetScore): Promise<string>

Perform pow on the block and return the nonce of at least targetScore.

Parameters

NameTypeDescription
blockUint8ArrayThe block to process.
targetScorenumberThe target score.

Returns

Promise<string>

The nonce.

Implementation of

IPowProvider.pow