Skip to main content

signer_evm/
error.rs

1//! Error types for EVM signer operations.
2
3/// Errors that can occur during EVM signing operations.
4#[derive(Debug, thiserror::Error)]
5pub enum Error {
6    /// Invalid hex string.
7    #[error("invalid hex: {0}")]
8    Hex(#[from] hex::FromHexError),
9
10    /// Invalid private key.
11    #[error("invalid private key: {0}")]
12    InvalidKey(String),
13
14    /// Signing error from alloy.
15    #[error("signing: {0}")]
16    Signing(#[from] alloy_signer::Error),
17}