Skip to main content

hd-tools for bitcoin and bitcoin-test

Project description

hdtools Build Status

HD Tools for cyrptocurrencies like BTC, and BTCt base on mcdallas/cryptotools.


  1. Create an virtualenv:
    virtualenv -p python3 .env
  2. Install requirements:
    pip install -r requirements
  3. Use library:
    from hdtools.extended_keys import *
    private_key = XPrv.from_mnemonic('mnemonic phrase')

How to install

pip install hdtools


Create HD Wallets

>>> from hdtools.extended_keys import *
>>> M = XPrv.from_mnemonic('lemon child success once board usual cigar buffalo video cheese kitten onion build axis dose')
>>> M.encode()

Address Generation

>>> (M/44./0./0./0/0).address('P2PKH')  # BIP44
>>> (M/49./0./0./0/0).address('P2WPKH-P2SH')  # BIP49
>>> (M/84./0./0./0/0).address('P2WPKH')  # BIP84

Run tests

python3 -m uninttest


python sdist bdist_wheel

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

hdtools-0.1.5.tar.gz (13.6 kB view hashes)

Uploaded Source

Built Distribution

hdtools-0.1.5-py3-none-any.whl (17.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page