Skip to main content

eigen_services_blsaggregation/
bls_aggregation_service_error.rs

1use eigen_types::avs::SignatureVerificationError;
2use thiserror::Error;
3
4/// Possible errors raised in BLS aggregation
5#[derive(Error, Debug, Clone, PartialEq, Eq)]
6pub enum BlsAggregationServiceError {
7    /// Task expired error
8    #[error("task expired error")]
9    TaskExpired,
10    /// Task not found error
11    #[error("task not found error")]
12    TaskNotFound,
13    /// Signature verification error. Wraps the error from the [`SignatureVerificationError`] enum.
14    #[error("signature verification error")]
15    SignatureVerificationError(SignatureVerificationError),
16    /// Signature channel closed error
17    #[error("signatures channel was closed, can't send signatures to aggregator")]
18    SignaturesChannelClosed,
19    /// AVS registry error
20    #[error("Avs Registry Error")]
21    RegistryError,
22    /// Duplicate task index error
23    #[error("duplicate task index error")]
24    DuplicateTaskIndex,
25    /// Sending to service error
26    #[error("error sending to service")]
27    SenderError,
28    /// Receiving from service error
29    #[error("error receiving from service")]
30    ReceiverError,
31}