Helper class to generate private keys from an extended private key (XPrv). This class accepts the master Spectre 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 Spectre 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

  • Returns void