Convert BIP-39 mnemonic to Ethereum private key in Python

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

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 https://github.com/vergl4s/ethereum-mnemonic-utils/, which produces a private key, but it's incorrect (or at least it does not match what is derived by https://iancoleman.io/bip39/ and the truffle-hdwallet-provider node packages).



Related Questions


Updated March 23, 2019 15:28 PM

Updated November 14, 2018 02:28 AM

Updated June 29, 2018 14:28 PM

Updated February 21, 2019 13:28 PM