Expand description
Ethereum wallet utilities for Kobe CLI.
Provides Ethereum address derivation from a unified kobe::Wallet.
§Features
std(default): Enable standard library supportalloc: Enable heap allocation without full std (forno_stdenvironments)rand: Enable random key generation forStandardWallet
§Usage
use kobe::Wallet;
use kobe_eth::{Deriver, DerivationStyle};
// Create a wallet from mnemonic
let wallet = Wallet::from_mnemonic(
"abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about",
None
).unwrap();
// Derive Ethereum addresses from the wallet
let deriver = Deriver::new(&wallet);
let addr = deriver.derive(0).unwrap(); // Standard style by default
println!("Address: {}", addr.address);
// Derive using Ledger Live style
let addr = deriver.derive_with(DerivationStyle::LedgerLive, 0).unwrap();
println!("Ledger Live Address: {}", addr.address);Structs§
- Derived
Address - A derived Ethereum address with associated keys.
- Deriver
- Ethereum address deriver from a unified wallet seed.
- Parse
Derivation Style Error - Error returned when parsing an invalid derivation style string.
- Standard
Wallet - A standard Ethereum wallet with a single private key.
Enums§
- Derivation
Style - Ethereum derivation path styles for different wallet software.
- Error
- Errors that can occur during Ethereum wallet operations.
Type Aliases§
- Result
- A convenient Result type alias for kobe-eth operations.