autobahn.wamp.mnemonic¶
Functions¶
|
BIP39 seed from a mnemonic key. |
|
Performs all convertions to get a private key from a mnemonic sentence. |
Module Contents¶
- mnemonic_to_bip39seed(mnemonic, passphrase)[source]¶
BIP39 seed from a mnemonic key. Logic adapted from https://github.com/trezor/python-mnemonic.
- mnemonic_to_private_key(mnemonic, str_derivation_path=LEDGER_ETH_DERIVATION_PATH, passphrase='')[source]¶
Performs all convertions to get a private key from a mnemonic sentence.
This includes:
BIP39 mnemonic to seed
BIP32 seed to master key
BIP32 child derivation of a path provided
- Parameters:
mnemonic – seed wordlist, usually with 24 words, that is used for ledger wallet backup
str_derivation_path – string that directs BIP32 key derivation, defaults to path used by ledger ETH wallet
passphrase – optional passphrase for BIP39 seed generation