Skip to content

Simple Python bip44 implementation. Mnemonic + bip32.

License

Notifications You must be signed in to change notification settings

kigawas/python-bip44

Repository files navigation

python-bip44

Codacy Badge CI Codecov PyPI - Python Version PyPI License

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'

Release Notes

0.1.1 ~ 0.1.4

  • Support Python 3.10, 3.11, 3.12
  • Bump dependencies
  • Drop Python 3.6, 3.7

0.1.0

  • First beta release
  • Bump dependencies

0.0.1 ~ 0.0.7

  • Alpha releases