use thiserror::Error;
#[derive(Error, Debug)]
pub enum ZaruError {
#[error("Invalid amount: {0}")]
InvalidAmount(String),
#[error("Transaction error: {0}")]
TransactionError(String),
#[error("Signature error: {0}")]
SignatureError(String),
#[error("Verification error: {0}")]
VerificationError(String),
#[error("Wallet error: {0}")]
WalletError(String),
#[error("Settlement error: {0}")]
SettlementError(String),
#[error("Crypto error: {0}")]
CryptoError(String),
#[error("Serialization error: {0}")]
SerializationError(String),
#[error("IO error: {0}")]
IoError(#[from] std::io::Error),
}
pub type Result<T> = std::result::Result<T, ZaruError>;