Skip to main content

hdtools Build Status

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

Requirements

  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')
    private_key.encode() 
    

How to install

pip install hdtools

Examples

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()
b'xprv9s21ZrQH143K38p5ouMV2qFYest2F3uRQC51JPLqsdi8Lh1rkXUJRUy1m7rd5TvooJn6gerthNmntuJag6e73mrf8GmG96Ua8rpayQtUEsL'

Address Generation

>>> (M/44./0./0./0/0).address('P2PKH')  # BIP44
b'1DgEh5Y6NioqaxHBBc2puDYq6SvG5NDsG9'
>>> (M/49./0./0./0/0).address('P2WPKH-P2SH')  # BIP49
b'39Qn8kHG6h7zv1Fh1iwjjyeRibx7gHTq1Z'
>>> (M/84./0./0./0/0).address('P2WPKH')  # BIP84
'bc1qrxxtlul9j3p95wrt33zg7vdf74skujnhnghaey'

Run tests

python3 -m uninttest

Run setup.py

python setup.py sdist bdist_wheel

Release files for hdtools 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hdtools 0.1.5
File Size Uploaded
hdtools-0.1.5.tar.gz 13.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hdtools 0.1.5
File Interpreter ABI Platform
hdtools-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 30.5 kB

Release files / hdtools-0.1.5.tar.gz

Download URL hdtools-0.1.5.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d0cd0175300ce88b3d27c9439021e1ffa33951ab8238a2bae5185fdec2685c65
BLAKE2b-256 checksum
How to use checksums
503e489329f0ac9f7870050c31be9a2ee01a99420bf74e1652b919bb2ce989d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3

Release files / hdtools-0.1.5-py3-none-any.whl

Download URL hdtools-0.1.5-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
93cd2947c345d013ba08496f5b6b39b8812dc3680b100a10c1c3282c215a55c0
BLAKE2b-256 checksum
How to use checksums
688d17090ee74026d33f06584133ffcfe680d963c5262d2dbc4b5d7243965ec1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

1 release file

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page