eq_common/
error.rs

1use serde::{Deserialize, Serialize};
2use thiserror::Error;
3
4#[derive(Clone, Error, Debug, Serialize, Deserialize)]
5pub enum InclusionServiceError {
6    #[error("Blob index not found")]
7    MissingBlobIndex,
8
9    #[error("Inclusion proof sanity check failed")]
10    FailedShareRangeProofSanityCheck,
11
12    #[error("Failed to convert keccak hash to array")]
13    KeccakHashConversion,
14
15    #[error("Failed to verify row root inclusion multiproof")]
16    RowRootVerificationFailed,
17
18    #[error("Failed to convert shares to blob: {0}")]
19    ShareConversionError(String),
20
21    #[error("Failed with: {0}")]
22    InternalError(String),
23
24    #[error("{0}")]
25    ZkClientError(String),
26
27    #[error("{0}")]
28    DaClientError(String),
29
30    #[error("Invalid parameter: {0}")]
31    InvalidParameter(String),
32
33    #[error("Failed to deserialize KeccakInclusionToDataRootProofOutput")]
34    OutputDeserializationError,
35}