Represents a Kaspa header PoW manager

Constructors

  • Parameters

    Returns PoW

Properties

prePoWHash: string

Hash of the header without timestamp and nonce.

target: bigint

The target based on the provided bits.

Methods

  • Checks if the computed target meets or exceeds the difficulty specified in the template.

    Parameters

    • nonce: bigint

    Returns [boolean, bigint]

    A boolean indicating if it reached the target and a bigint representing the reached target.

  • Returns void

    • Return copy of self without private attributes.

    Returns Object

  • Return stringified version of self.

    Returns string

  • Can be used for parsing Stratum templates.

    Parameters

    • pre_pow_hash: string
    • timestamp: bigint
    • Optional target_bits: number

    Returns PoW

Generated using TypeDoc