Expand description
Core wallet types for Kobe multi-chain wallet CLI.
This crate provides the unified Wallet type that holds a BIP39 mnemonic
and derives seeds for multiple cryptocurrencies.
§Features
std(default): Enable standard library supportalloc: Enable heap allocation without full std (forno_stdenvironments)
§Example
use kobe::Wallet;
// Create a wallet from an existing mnemonic
let wallet = Wallet::from_mnemonic(
"abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about",
None
).unwrap();
// Or with a passphrase (BIP39 optional password)
let wallet = Wallet::from_mnemonic(
"abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about",
Some("my secret passphrase")
).unwrap();
// The same mnemonic can derive addresses for any coin
let seed = wallet.seed();Structs§
- Wallet
- A unified HD wallet that can derive keys for multiple cryptocurrencies.
Enums§
- Error
- Errors that can occur during wallet operations.
- Language
- Language to be used for the mnemonic phrase.
Type Aliases§
- Result
- A convenient Result type alias for kobe-core operations.