1#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
3pub enum DoryError {
4 #[error("Invalid proof")]
6 InvalidProof,
7
8 #[error("Invalid polynomial size: expected {expected}, got {actual}")]
10 InvalidSize {
11 expected: usize,
13 actual: usize,
15 },
16
17 #[error("Invalid evaluation point dimension: expected {expected}, got {actual}")]
19 InvalidPointDimension {
20 expected: usize,
22 actual: usize,
24 },
25
26 #[error("Invalid input: {0}")]
28 InvalidInput(String),
29
30 #[error("Invalid or missing URS file: {0}")]
32 InvalidURS(String),
33}