xbr._mnemonic

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:

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, including:

BIP39 mnemonic to seed BIP32 seed to master key BIP32 child derivation of a path provided

Parameters:
  • wordlist (mnemonic -- seed)

  • words (usually with 24)

  • backup (that is used for ledger wallet)

  • derivation (str_derivation_path -- string that directs BIP32 key) – used by ledger ETH wallet

  • path (defaults to) – used by ledger ETH wallet