Convert BIP-39 mnemonic to Ethereum private key in Python

by Niklas B.   Last Updated July 11, 2019 14:28 PM - source

How do I convert a BIP-39 mnemonic to an Ethereum private key in Python (via BIP-44 key derivation)? All the libraries I found that gave me the intended result depend on the two1 package, which conflicts with modern versions of requests, which is a non-starter.

I found, which produces a private key, but it's incorrect (or at least it does not match what is derived by and the truffle-hdwallet-provider node packages).

Related Questions

How to recover keys from mnemonic phrases

Updated November 14, 2018 02:28 AM

Web3 create account from mnemonic + passphrase

Updated June 29, 2018 14:28 PM

generate unique mnemonic with password(only)

Updated February 21, 2019 13:28 PM