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

Metadata

Release files for hdtools 0.1.3

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.3
File Size Uploaded Provenance Actions
hdtools-0.1.3.tar.gz 13.8 kB Without provenance Details for hdtools-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 30.8 kB

Release files / hdtools-0.1.3.tar.gz

Download URL hdtools-0.1.3.tar.gz
Size 13.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f50961f223e9930aff779a5accdf3df727749f4e4c3323d51c177438cc4298a1
BLAKE2b-256 checksum
How to use checksums
bc5719f7b399c24ee402654c1a3634e71f28f65e71337e6eb8b5358ee80350d2
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.7

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

Download URL hdtools-0.1.3-py3-none-any.whl
Size 16.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2f46edf0d7c2c32f02e95448c9c59918f623ed0a28015212caaef9bef40db82
BLAKE2b-256 checksum
How to use checksums
47f7bea2b0ee9f1de6a0402d7fe8e98e12457d4a3c615f6ca8b06dd2c624c314
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.7

Security for hdtools 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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