Simple Python bip44 implementation. Mnemonic + bip32.
Project description
python-bip44
Simple Python bip44 implementation. Mnemonic + bip32.
Install
pip install bip44
Quick Start
>>> from coincurve import PrivateKey
>>> from bip44 import Wallet
>>> from bip44.utils import get_eth_addr
>>> mnemonic = "purity tunnel grid error scout long fruit false embody caught skin gate"
>>> w = Wallet(mnemonic)
>>> sk, pk = w.derive_account("eth", account=0)
>>> sk = PrivateKey(sk)
>>> sk.public_key.format() == pk
True
>>> get_eth_addr(pk)
'0x7ad23d6ed9a1d98e240988bed0d78e8c81ec296c'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bip44-0.0.3.tar.gz
(3.8 kB
view hashes)
Built Distribution
bip44-0.0.3-py3-none-any.whl
(4.1 kB
view hashes)