kobe
Modular, no_std-compatible Rust toolkit for HD wallet derivation — BIP39 mnemonic management, multi-chain address generation, and a batteries-included CLI.
kobe provides a unified [Wallet] seed from a single mnemonic, then delegates to per-chain crates for standards-compliant key derivation (BIP32/44/49/84/86 for Bitcoin, BIP-44 for Ethereum, SLIP-10 for Solana). All library crates compile under no_std + alloc and zeroize sensitive material on drop.
Crates
| Kobe Crate | Description | |
|---|---|---|
kobe |
Core library — BIP39 mnemonic, seed derivation, no_std wallet type |
|
kobe-btc |
Bitcoin — P2PKH, P2SH-P2WPKH, P2WPKH, P2TR address derivation | |
kobe-evm |
Ethereum (EVM) — BIP-44 derivation, MetaMask / Ledger Live / Ledger Legacy styles | |
kobe-svm |
Solana (SVM) — SLIP-10 Ed25519, Phantom / Trust / Ledger Live styles | |
kobe-cli |
CLI tool — generate, import, and derive wallets across all supported chains |
Planned: kobe-sui (Sui), kobe-xmr (Monero), kobe-zec (Zcash).
Quick Start
Derive an Ethereum Address (Library)
use Wallet;
use ;
let wallet = from_mnemonic?;
let deriver = new;
let addr = deriver.derive?;
println!; // 0x9858EfFD232B4033E47d90003D41EC34EcaEda94
Generate a Bitcoin Wallet (Library)
use Wallet;
use ;
let wallet = generate?;
let deriver = new;
let addr = deriver.derive?;
println!;
println!;
CLI Usage
# Generate a new Bitcoin wallet (Native SegWit)
# Generate 5 Taproot addresses with a 24-word mnemonic
# Generate a new Ethereum wallet (Ledger Live style)
# Generate a new Solana wallet (Phantom style)
# Import from an existing mnemonic
Install via Cargo:
Design
| Description | |
|---|---|
| Multi-chain | Bitcoin (4 address types), Ethereum, Solana — from one BIP39 seed |
| HD standards | BIP32, BIP39, BIP44 / 49 / 84 / 86, SLIP-10 |
| Derivation styles | Standard, Ledger Live, Ledger Legacy, Trust Wallet, Legacy (Solana) |
no_std + alloc |
All library crates compile without std; suitable for embedded / WASM |
| Zeroizing | Private keys and seeds wrapped in Zeroizing<T> — cleared on drop |
| CSPRNG | Random generation via OS-provided rand_core::OsRng |
| Linting | pedantic + nursery + correctness (deny) — strict Clippy across workspace |
| Edition | Rust 2024 — RPITIT, no_std ergonomics |
Feature Flags
Each crate uses feature flags to minimize compile-time dependencies:
| Crate | std |
alloc |
rand |
rand_core |
|---|---|---|---|---|
kobe |
Full std support (default) | Heap allocation for no_std |
Random mnemonic via OS RNG | Custom RNG for no_std |
kobe-btc |
Full std support (default) | Heap allocation for no_std |
Random key generation | — |
kobe-evm |
Full std support (default) | Heap allocation for no_std |
Random key generation | — |
kobe-svm |
Full std support (default) | Heap allocation for no_std |
Ed25519 key generation | — |
Security
This library has not been independently audited. Use at your own risk.
- Private keys and seeds use
zeroizefor secure memory cleanup - No key material is logged or persisted by the library
- Random generation uses OS-provided CSPRNG via
rand_core::OsRng - Environment variable manipulation is disallowed at the lint level
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project shall be dual-licensed as above, without any additional terms or conditions.