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

Metadata

Release files for hdtools 0.1.4

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.4
File Size Uploaded Provenance Actions
hdtools-0.1.4.tar.gz 13.6 kB Without provenance Details for hdtools-0.1.4.tar.gz

Built distribution (wheel)

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

Total release size: 30.5 kB

Release files / hdtools-0.1.4.tar.gz

Download URL hdtools-0.1.4.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
145e12a182e28a04341d5d52faa4287084e73fe4f3efeab37b41eaf909bf30e1
BLAKE2b-256 checksum
How to use checksums
9e04ef2bf35b2c9dad10fd904142f56155b01ab67ecf3769100705d2451a2716
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.4-py3-none-any.whl

Download URL hdtools-0.1.4-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4298cd6f2eba5173fae76b506894cbf7722dbd0be8d8becb2c06e2964e3c920
BLAKE2b-256 checksum
How to use checksums
70b5c5c3b9e1f05d5670658cf3345d75b741678abed2aa7f41761c6afc2c5b5f
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

Security for hdtools 0.1.4

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