Hdtools
HD Tools for cryptocurrencies
Install / Use
/learn @morvaridio/HdtoolsREADME
hdtools 
HD Tools for cyrptocurrencies like BTC, and BTCt base on mcdallas/cryptotools.
Requirements
- Create an virtualenv:
virtualenv -p python3 .env - Install requirements:
pip install -r requirements - 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
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
