Hdwallet py

From claude-dev-suite/claude-dev-suite · View interactive version

Hdwallet py is an AI agent skill from the GitHub repository claude-dev-suite/claude-dev-suite. hdwallet (Python): HD wallet generator + key derivation. Multi-coin, BIP32/39/44/49/84/86/141. USE WHEN: deriving keys for many cryptocurrencies, scripting key generation in Python.

How to use this skill

Skill file

hdwallet (Python)

Pure Python HD wallet library supporting many BIP standards across

many cryptocurrencies.

Repo: github.com/hdwallet-io/python-hdwallet (homepage

hdwallet.io). The project moved out of the author's personal

namespace into the hdwallet-io org; the pre-v3 URL

github.com/meherett/python-hdwallet is today a fork of that repo

rather than upstream (checked September 2026).

Latest release: v3.6.1 (August 2025); still maintained, with commits

on master through February 2026 (checked September 2026).

Install

pip install 'hdwallet>=3'      # 3.6.1 as of September 2026
pip install 'hdwallet[cli]>=3' # plus the `hdwallet` CLI

v3.0.0 (November 2024) was a full rewrite and broke the v2 API. Code

written against v2 needs pip install 'hdwallet<3' (last v2 release:

2.2.1, December 2022) or a port to the v3 API below.

Quick example

from hdwallet import HDWallet
from hdwallet.cryptocurrencies import Bitcoin
from hdwallet.hds import BIP84HD
from hdwallet.mnemonics import BIP39Mnemonic
from hdwallet.derivations import BIP84Derivation, CHANGES

hdwallet: HDWallet = HDWallet(
    cryptocurrency=Bitcoin,
    hd=BIP84HD,
    network=Bitcoin.NETWORKS.MAINNET
).from_mnemonic(
    mnemonic=BIP39Mnemonic(mnemonic="abandon abandon ... about")
).from_derivation(
    derivation=BIP84Derivation(
        coin_type=Bitcoin.COIN_TYPE,
        account=0,
        change=CHANGES.EXTERNAL_CHAIN,
        address=0
    )
)

print(hdwallet.address())       # bc1q... (BIP84HD defaults to P2WPKH)
print(hdwallet.private_key())
print(hdwallet.public_key())

Features

(separate bip38 package, not the hdwallet import surface).

P2WSH-in-P2SH, plus non-Bitcoin encodings.

Use cases

signing; use HW or HSM).

Common pitfalls

memory leakage, etc.).

HDWallet(symbol=BTC), from_path(...), p2wpkh_address()) do not

work on v3. hdwallet/symbols.py still exists in 3.6.1, so the

import succeeds and the failure surfaces later, at the constructor.

not a bare string.

from the 2.2.1, 3.6.1 and master source trees, checked September

2026). Use a dedicated BIP85 implementation.

CVE-2025-69277 (January 2026); no tagged release carries that bump

as of September 2026.

See also

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.