
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Generation of mnemonics, seeds, private/public keys and addresses for different types of cryptocurrencies
This package allows generating mnemonics, seeds, private/public keys and addresses for different types of cryptocurrencies. In particular:
Other 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 of 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.
For the secp256k1 curve, it's possible to use either the coincurve or the ecdsa library. coincurve is much faster since it's a Python wrapper to the secp256k1 C library, while ecdsa is a pure Python implementation.
By default coincurve will be used, but it's possible to disable it when installing.
To install the package:
Default installation (coincurve will be used for secp256k1)
Using pip, from this directory (local):
pip install .
Using pip, from PyPI:
pip install bip_utils
Alternative installation (ecdsa will be used for secp256k1)
Using setuptools:
python setup.py install --coincurve=0
Using pip, from this directory (local):
pip install . --install-option="--coincurve=0"
Using pip, from PyPI:
pip install bip_utils --install-option="--coincurve=0"
NOTES:
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
To run code analysis, just execute the analyze_code
script.
The library documentation is available at bip-utils.readthedocs.io.
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:
bc1qq4r9cglwzd6f2hzxvdkucmdejvr9h8me5hy0k8
0xf84e4898E5E10bf1fBe9ffA3EEC845e82e364b5B
Thank you very much for your support.
This software is available under the MIT license.
FAQs
Generation of mnemonics, seeds, private/public keys and addresses for different types of cryptocurrencies
We found that bip-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.