Bip32

Bip32

Factory of BIP32 root nodes.

Constructor

new Bip32(curveName, mnemonicLanguage)

Description:
  • Creates a BIP32 root node factory.

Source:
Parameters:
Name Type Default Description
curveName string ed25519

Elliptic curve to use.

mnemonicLanguage string english

Language of constructed mnemonics.

Classes

Bip32

Methods

fromMnemonic(mnemonic, password) → {Bip32Node}

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

Source:
Parameters:
Name Type Description
mnemonic string

BIP32 mnemonic.

password string

BIP32 mnemonic password.

Returns:

BIP32 root node.

Type
Bip32Node

fromSeed(seed) → {Bip32Node}

Description:
  • Creates a BIP32 root node from a seed.

Source:
Parameters:
Name Type Description
seed Uint8Array

BIP32 seed.

Returns:

BIP32 root node.

Type
Bip32Node

random(seedLength) → {string}

Description:
  • Creates a random BIP32 mnemonic.

Source:
Parameters:
Name Type Default Description
seedLength number 32

Length of random seed to use when generating mnemonic.

Returns:

Random mnemonic created with the specified entropy.

Type
string