Skip to main content

Crate haima_wallet

Crate haima_wallet 

Source
Expand description

Wallet management for Haima.

Provides secp256k1 keypair generation, EVM-compatible address derivation, encrypted private key storage, and signing operations.

The wallet is local-first: private keys are encrypted with ChaCha20-Poly1305 and stored as Lago blobs. The abstraction layer supports future MPC wallet backends (e.g., Coinbase CDP MPC) through the WalletBackend trait.

Re-exports§

pub use backend::WalletBackend;
pub use evm::decrypt_private_key;
pub use evm::derive_address;
pub use evm::encrypt_private_key;
pub use evm::generate_keypair;
pub use signer::LocalSigner;

Modules§

backend
Wallet backend trait — abstraction over local and MPC wallets.
evm
EVM wallet — secp256k1 keypair generation and Ethereum address derivation.
signer
Local signer — implements WalletBackend using a local secp256k1 private key.