haima_wallet/lib.rs
1//! Wallet management for Haima.
2//!
3//! Provides secp256k1 keypair generation, EVM-compatible address derivation,
4//! encrypted private key storage, and signing operations.
5//!
6//! The wallet is local-first: private keys are encrypted with ChaCha20-Poly1305
7//! and stored as Lago blobs. The abstraction layer supports future MPC wallet
8//! backends (e.g., Coinbase CDP MPC) through the `WalletBackend` trait.
9
10pub mod backend;
11pub mod evm;
12pub mod signer;
13
14pub use backend::WalletBackend;
15pub use evm::{decrypt_private_key, derive_address, encrypt_private_key, generate_keypair};
16pub use signer::LocalSigner;