Skip to main content

Interface: IPowProvider

Perform the POW on a block.

Implemented by

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 as a string.