Class PublicKeyGenerator

Helper class to generate public keys from an extended public key (XPub) that has been derived up to the co-signer index.

Please note that in Kaspa master public keys use kpub prefix.

Constructors

Methods

  • Generate a single Change Address derivation at a given index.

    Parameters

    Returns Address

  • Generate a single Change Address derivation at a given index and return it as a string.

    Parameters

    Returns string

  • Generate a range of Change Address derivations and return them as strings.

    Parameters

    Returns string[]

  • Generate Change Address derivations for a given range.

    Parameters

    Returns Address[]

  • Generate a single Change Public Key derivation at a given index.

    Parameters

    • index: number

    Returns PublicKey

  • Generate a single Change Public Key derivation at a given index and return it as a string.

    Parameters

    • index: number

    Returns string

  • Generate Change Public Key derivations for a given range.

    Parameters

    • start: number
    • end: number

    Returns (string | PublicKey)[]

  • Generate a range of Change Public Key derivations and return them as strings.

    Parameters

    • start: number
    • end: number

    Returns string[]

  • Returns void

  • Generate a single Receive Address derivation at a given index.

    Parameters

    Returns Address

  • Generate a single Receive Address derivation at a given index and return it as a string.

    Parameters

    Returns string

  • Generate a range of Receive Address derivations and return them as strings.

    Parameters

    Returns string[]

  • Generate Receive Address derivations for a given range.

    Parameters

    Returns Address[]

  • Generate a single Receive Public Key derivation at a given index.

    Parameters

    • index: number

    Returns PublicKey

  • Generate a single Receive Public Key derivation at a given index and return it as a string.

    Parameters

    • index: number

    Returns string

  • Generate Receive Public Key derivations for a given range.

    Parameters

    • start: number
    • end: number

    Returns (string | PublicKey)[]

  • Generate a range of Receive Public Key derivations and return them as strings.

    Parameters

    • start: number
    • end: number

    Returns string[]

  • Returns string

  • Parameters

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

    Returns PublicKeyGenerator

Generated using TypeDoc