Class PrivateKeyGenerator

Helper class to generate private keys from an extended private key (XPrv). This class accepts the master Kaspa XPrv string (e.g. xprv1...) and generates private keys for the receive and change paths given the pre-set parameters such as account index, multisig purpose and cosigner index.

Please note that in Kaspa master private keys use kprv prefix.

Constructors

Methods

Constructors

  • Parameters

    • xprv: string | XPrv
    • is_multisig: boolean
    • account_index: bigint
    • Optional cosigner_index: number

    Returns PrivateKeyGenerator

Methods

  • Parameters

    • index: number

    Returns PrivateKey

  • Returns void

  • Parameters

    • index: number

    Returns PrivateKey

Generated using TypeDoc