Constructor
new Bip32(curveName, mnemonicLanguage)
Creates a BIP32 root node factory.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
curveName |
string | ed25519 | Elliptic curve to use. |
mnemonicLanguage |
string | english | Language of constructed mnemonics. |
Methods
fromMnemonic(mnemonic, password) → {Bip32Node}
Creates a BIP32 root node from a BIP39 mnemonic and password.
Parameters:
Name | Type | Description |
---|---|---|
mnemonic |
string | BIP32 mnemonic. |
password |
string | BIP32 mnemonic password. |
Returns:
BIP32 root node.
- Type
- Bip32Node
fromSeed(seed) → {Bip32Node}
Creates a BIP32 root node from a seed.
Parameters:
Name | Type | Description |
---|---|---|
seed |
Uint8Array | BIP32 seed. |
Returns:
BIP32 root node.
- Type
- Bip32Node