Options
All
  • Public
  • Public/Protected
  • All
Menu

Class for wrapping SigningKey that is used for signature creation and public key derivation.

Hierarchy

  • PrivateKey

Index

Constructors

Properties

wallet: Wallet

Methods

  • toBech32(): string
  • toHex(): string
  • fromMnemonic(words: string, path?: undefined | string): PrivateKey
  • Create a PrivateKey instance from a given mnemonic phrase and a HD derivation path. If path is not given, default to Band's HD prefix 494 and all other indexes being zeroes.

    Parameters

    • words: string

      the mnemonic phrase

    • path: undefined | string = DEFAULT_DERIVATION_PATH

      the HD path that follows the BIP32 standard (optional)

    Returns PrivateKey

    Initialized PrivateKey object

  • Create a PrivateKey instance from a given private key and a HD derivation path. If path is not given, default to Band's HD prefix 494 and all other indexes being zeroes.

    deprecated
    • use fromHex instead

    Parameters

    • privateKey: string

      the private key

    Returns PrivateKey

    Initialized PrivateKey object

  • generate(): { mnemonic: string; privateKey: PrivateKey }

Generated using TypeDoc