Hierarchical Deterministic (HD) Wallet — Rust
Rust implementation of a Hierarchical Deterministic (HD) Wallet generator for 200+ cryptocurrencies.
Beta notice: This project is in active beta testing. APIs, CLI flags, and behavior may change between releases. If you find bugs or compatibility issues, please open an issue or help us fix them — see CONTRIBUTING.md.
This library is a Rust port inspired by the excellent python-hdwallet project. It offers a flexible and scalable solution for developers integrating multi-currency wallet functionality: secure seed generation, robust key management, and streamlined account control across many blockchains.
| Features | Protocols |
|---|---|
| Cryptocurrencies | 200+ (see hdwallet list cryptocurrencies) |
| Entropies | Algorand, BIP39, Electrum-V1, Electrum-V2, Monero |
| Mnemonics | Algorand, BIP39, Electrum-V1, Electrum-V2, Monero |
| Seeds | Algorand, BIP39, Cardano, Electrum-V1, Electrum-V2, Monero |
| Elliptic Curve Cryptography | Kholaw-Ed25519, SLIP10-Ed25519, SLIP10-Ed25519-Blake2b, SLIP10-Ed25519-Monero, SLIP10-Nist256p1, SLIP10-Secp256k1 |
| Hierarchical Deterministic | Algorand, BIP32, BIP44, BIP49, BIP84, BIP86, BIP141, Cardano, Electrum-V1, Electrum-V2, Monero |
| Derivations | BIP44, BIP49, BIP84, BIP86, CIP1852, Custom, Electrum, Monero, HDW |
| Addresses | Algorand, Aptos, Avalanche, Cardano, Cosmos, EOS, Ergo, Ethereum, Filecoin, Harmony, Icon, Injective, Monero, MultiversX, Nano, Near, Neo, OKT-Chain, P2PKH, P2SH, P2TR, P2WPKH, P2WPKH-In-P2SH, P2WSH, P2WSH-In-P2SH, Ripple, Solana, Stellar, Sui, Tezos, Tron, XinFin, Zilliqa |
| Others | BIP38, Wallet Import Format, Serialization |
Installation
Add the library to your Cargo.toml:
[]
= "0.1.0-beta"
Or install from GitHub:
[]
= { = "https://github.com/itsm3abena/rust-hdwallet" }
Or clone and build locally:
The CLI binary is named hdwallet:
# or from a local clone:
# or
Requirements: Rust 1.85 or later.
Quick Usage
Library Example
A simple Bitcoin HD wallet generator:
use HashSet;
use PublicKeyTypes;
use CustomDerivation;
use ;
Command Line Interface (CLI)
The hdwallet CLI lets you generate wallets, derive addresses, and export keys from the terminal in JSON or CSV format.
Full CLI guide with copy-paste test examples: docs/CLI.md
List supported cryptocurrencies:
Generate a BIP39 mnemonic:
Dump wallet keys from a mnemonic (Bitcoin, BIP44):
Export multiple derived addresses as JSON:
Run hdwallet --help or hdwallet dump --help for the full option list.
Development
Fork the repository, clone it locally, and build:
Testing
Run the full test suite:
Run a specific test module:
Contributing
We welcome bug reports, feature requests, documentation improvements, and pull requests — especially during this beta phase.
- Open an issue to report bugs or discuss changes before large PRs.
- See CONTRIBUTING.md for setup steps, coding guidelines, and the pull request workflow.
- Help with testing against real wallets, adding cryptocurrency coverage, and improving docs is highly appreciated.
Related Projects
- python-hdwallet — Original Python implementation
- hdwallet.js — TypeScript/JavaScript port
License
Distributed under the MIT license.