1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//! Errors

use thiserror::Error;

//--------------------------------------------------------------------------------------------------
// Type Definitions
//--------------------------------------------------------------------------------------------------

#[derive(Debug, PartialEq, Eq, Error)]
pub enum VerificationError {
    #[error("Hash-to-prime didn't end up prime")]
    LHashNonPrime,

    #[error("Residue outside range")]
    ResidueOutsideRange,

    #[error("NameAccumulator batched proof validation failed")]
    ValidationFailed,
}