PY Crypto HD Wallet
Introduction
This package contains a very basic implementation of a HD (Hierarchical Deterministic) wallet based on my bip_utils library.It is basically a nice wrapper for the bip_utils library for generating mnemonics, seeds, public/private keys and addresses. Therefore, it has no network functionalities.The supported coins are the same of the bip_utils library, so check the related page.
Install the package
The package requires Python >= 3.7.To install it:
pip install py_crypto_hd_wallet
Test and Coverage
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).
Modules description
Examples of wallet JSON outputs
Documentation
The library documentation is available at py-crypto-hd-wallet.readthedocs.io.
Buy me a coffee
You know, I’m italian and I love drinking coffee (especially while coding :D). So, if you’d like to buy me one:
BTC:
bc1qqxwmzs7qyatpht84hqmavkag0r3gnalyjxqr9dEVM:
0xbe6Ce1d8fc6e72173f00A63FF493dFdFdb664FbF
Thank you very much for your support.
License
This software is available under the MIT license.
Modules
- py_crypto_hd_wallet
- algorand
- bip
- hd_wallet_bip
- hd_wallet_bip_addr
- hd_wallet_bip_enum
HdWalletBipDataTypesHdWalletBipDataTypes.WALLET_NAMEHdWalletBipDataTypes.COIN_NAMEHdWalletBipDataTypes.SPEC_NAMEHdWalletBipDataTypes.MNEMONICHdWalletBipDataTypes.PASSPHRASEHdWalletBipDataTypes.SEED_BYTESHdWalletBipDataTypes.ACCOUNT_IDXHdWalletBipDataTypes.CHANGE_IDXHdWalletBipDataTypes.MASTER_KEYHdWalletBipDataTypes.PURPOSE_KEYHdWalletBipDataTypes.COIN_KEYHdWalletBipDataTypes.ACCOUNT_KEYHdWalletBipDataTypes.CHANGE_KEYHdWalletBipDataTypes.ADDRESS_OFFHdWalletBipDataTypes.ADDRESS
HdWalletBipKeyTypes
- hd_wallet_bip_factory
- hd_wallet_bip_keys
- cardano
- shelley
- hd_wallet_cardano_shelley
- hd_wallet_cardano_shelley_addr
- hd_wallet_cardano_shelley_enum
HdWalletCardanoShelleyDataTypesHdWalletCardanoShelleyDataTypes.WALLET_NAMEHdWalletCardanoShelleyDataTypes.COIN_NAMEHdWalletCardanoShelleyDataTypes.MNEMONICHdWalletCardanoShelleyDataTypes.PASSPHRASEHdWalletCardanoShelleyDataTypes.SEED_BYTESHdWalletCardanoShelleyDataTypes.ACCOUNT_IDXHdWalletCardanoShelleyDataTypes.CHANGE_IDXHdWalletCardanoShelleyDataTypes.MASTER_KEYHdWalletCardanoShelleyDataTypes.ACCOUNT_KEYHdWalletCardanoShelleyDataTypes.STAKING_KEYHdWalletCardanoShelleyDataTypes.ADDRESS_OFFHdWalletCardanoShelleyDataTypes.ADDRESS
HdWalletCardanoShelleyKeyTypes
- hd_wallet_cardano_shelley_factory
- hd_wallet_cardano_shelley_keys
- shelley
- common
- electrum
- v1
- hd_wallet_electrum_v1
- hd_wallet_electrum_v1_addr
- hd_wallet_electrum_v1_enum
HdWalletElectrumV1DataTypesHdWalletElectrumV1DataTypes.WALLET_NAMEHdWalletElectrumV1DataTypes.COIN_NAMEHdWalletElectrumV1DataTypes.MNEMONICHdWalletElectrumV1DataTypes.SEED_BYTESHdWalletElectrumV1DataTypes.CHANGE_IDXHdWalletElectrumV1DataTypes.MASTER_KEYHdWalletElectrumV1DataTypes.ADDRESS_OFFHdWalletElectrumV1DataTypes.ADDRESS
HdWalletElectrumV1KeyTypes
- hd_wallet_electrum_v1_factory
- hd_wallet_electrum_v1_keys
- v2
- hd_wallet_electrum_v2
- hd_wallet_electrum_v2_addr
- hd_wallet_electrum_v2_enum
HdWalletElectrumV2DataTypesHdWalletElectrumV2DataTypes.WALLET_NAMEHdWalletElectrumV2DataTypes.COIN_NAMEHdWalletElectrumV2DataTypes.MNEMONICHdWalletElectrumV2DataTypes.PASSPHRASEHdWalletElectrumV2DataTypes.SEED_BYTESHdWalletElectrumV2DataTypes.CHANGE_IDXHdWalletElectrumV2DataTypes.MASTER_KEYHdWalletElectrumV2DataTypes.ADDRESS_OFFHdWalletElectrumV2DataTypes.ADDRESS
HdWalletElectrumV2KeyTypes
- hd_wallet_electrum_v2_factory
- hd_wallet_electrum_v2_keys
- v1
- monero
- saver
- substrate
- utils