Skip to main content

kobe_evm/
lib.rs

1//! Ethereum wallet utilities for Kobe CLI.
2//!
3//! Provides Ethereum address derivation from a unified [`kobe::Wallet`].
4//!
5//! # Features
6//!
7//! - `std` (default): Enable standard library support
8//! - `alloc`: Enable heap allocation without full std (for `no_std` environments)
9//! - `rand`: Enable random key generation for `StandardWallet`
10
11#![cfg_attr(not(feature = "std"), no_std)]
12
13#[cfg(feature = "alloc")]
14extern crate alloc;
15
16#[cfg(feature = "alloc")]
17mod address;
18#[cfg(feature = "alloc")]
19mod derivation_style;
20#[cfg(feature = "alloc")]
21mod deriver;
22mod error;
23#[cfg(feature = "alloc")]
24mod standard_wallet;
25
26#[cfg(feature = "alloc")]
27pub use derivation_style::{DerivationStyle, ParseDerivationStyleError};
28#[cfg(feature = "alloc")]
29pub use deriver::{DerivedAddress, Deriver};
30pub use error::Error;
31#[cfg(feature = "alloc")]
32pub use standard_wallet::StandardWallet;
33
34/// A convenient Result type alias for kobe-evm operations.
35pub type Result<T> = core::result::Result<T, Error>;