Manage BIP32 based HD wallets.
Project description
Description
This repository presents a library for generating and managing hierarchical deterministic (HD) wallets. The core of this software includes an implementation of the BIP 39 and BIP 32 (Bitcoin Improvement Protocol) protocols for generating mnemonic seeds and wallets, respectively. The BIP 32 module contains the BIP32_Account base class for deriving HD wallets based on the BIP 32 specification. It's recommended that you use the BIP44, BIP49, and BIP84 subclasses to generate HD wallets. These class make use of the BIP32_Account core functionality but allow for deriving extended key pairs off of the 44', 49', and 84' purpose paths.
Usage
from biptools.bip44 import BIP44
phrase = 'cactus fringe crater danger leave pill endorse night clown change apology issue'
wallet = BIP44(phrase)
xprv, xpub = wallet.get_master_keys()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for bip_tools-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4f675cbd3f561da03c1cfdd2f66e13b40181feb49f63ebe59bbc19a8de1157f |
|
MD5 | 221273be5f9c61d98f527f80b0941114 |
|
BLAKE2b-256 | 403dfb4768a55b8147f28e7c918294b3b7f3f34efe5f027acb0fcae2949a4c55 |