Generation of mnemonics, seeds, private/public keys and addresses for different types of cryptocurrencies
Actively maintained. Last release 3 days ago, commits in 7 of the last 26 weeks. A safe choice.
pip install bip-utilsGeneration of mnemonics, seeds, private/public keys and addresses for different types of cryptocurrencies
Actively maintained. Last release 3 days ago, commits in 7 of the last 26 weeks. A safe choice.
pip install bip-utilsOther implemented functionalities:
Package dependencies:
Please note that, for the py-sr25519-bindings library, Rust is required to be installed.
Supported BIP coins:
Supported Substrate coins:
For what regards Monero, it's also possible to generate the same addresses as the official wallets without using BIP44 derivation.
Clearly, for those coins that support Smart Contracts (e.g. Ethereum, Tron, ...), the generated keys and addresses are valid for all the related tokens.
The package can be simply installed via pip:
pip install bip_utils
NOTE: if you have problems building the ed25519_blake2b library (it usually happens on Windows), you can try one of the prebuilt wheels here.
Install develop dependencies:
pip install -r requirements-dev.txt
To run tests:
python -m unittest discover
To run tests with coverage:
coverage run -m unittest discover
coverage report -m
To run code analysis:
mypy .
ruff check .
tox can also be used for testing and code analysis (check tox.ini for the environments).
The library documentation is available at ebellocchia.github.io/bip_utils.
For some complete code examples (from mnemonic to keys generation), refer to the examples folder.
You know, I'm Italian and I love drinking coffee (especially while coding 😃). So, if you'd like to buy me one:
bc1qqxwmzs7qyatpht84hqmavkag0r3gnalyjxqr9d0xbe6Ce1d8fc6e72173f00A63FF493dFdFdb664FbFThank you very much for your support.
This software is available under the MIT license.
Use instead of bip-utils: tools that do the same job, closest first.
Compare with hdwallet →Compare with bitcoinlib →Compare all 3 →
Python-based library implementing a Hierarchical Deterministic (HD) Wallet generator for 200+ cryptocurrencies.
Bitcoin cryptocurrency Library