Skip to main content

Crate kobe_eth

Crate kobe_eth 

Source
Expand description

Ethereum wallet utilities for Kobe CLI.

Provides Ethereum address derivation from a unified kobe::Wallet.

§Features

  • std (default): Enable standard library support
  • alloc: Enable heap allocation without full std (for no_std environments)
  • rand: Enable random key generation for StandardWallet

§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§

DerivedAddress
A derived Ethereum address with associated keys.
Deriver
Ethereum address deriver from a unified wallet seed.
ParseDerivationStyleError
Error returned when parsing an invalid derivation style string.
StandardWallet
A standard Ethereum wallet with a single private key.

Enums§

DerivationStyle
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.