Factory of BIP32 root nodes.

Constructors

  • Creates a BIP32 root node factory.

    Parameters

    • Optional curveName: string

      Elliptic curve to use.

    • Optional mnemonicLanguage: string

      Language of constructed mnemonics.

    Returns Bip32

Methods

  • Creates a BIP32 root node from a BIP39 mnemonic and password.

    Parameters

    • mnemonic: string

      BIP32 mnemonic.

    • password: string

      BIP32 mnemonic password.

    Returns Bip32Node

    BIP32 root node.

  • Creates a BIP32 root node from a seed.

    Parameters

    • seed: Uint8Array

      BIP32 seed.

    Returns Bip32Node

    BIP32 root node.

  • Creates a random BIP32 mnemonic.

    Parameters

    • Optional seedLength: number

      Length of random seed to use when generating mnemonic.

    Returns string

    Random mnemonic created with the specified entropy.