autobahn.xbr._mnemonic


Module Contents

Functions

mnemonic_to_bip39seed(mnemonic, passphrase)

BIP39 seed from a mnemonic key.

mnemonic_to_private_key(mnemonic[, ...])

Performs all convertions to get a private key from a mnemonic sentence, including:

autobahn.xbr._mnemonic.mnemonic_to_bip39seed(mnemonic, passphrase)[source]

BIP39 seed from a mnemonic key. Logic adapted from https://github.com/trezor/python-mnemonic.

autobahn.xbr._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, including:

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