mithril_stm/protocol/single_signature/
error.rs

1/// Errors which can be output by Mithril single signature verification.
2#[derive(Debug, Clone, thiserror::Error)]
3pub enum SignatureError {
4    /// There is an index out of bounds
5    #[error("Received index, {0}, is higher than what the security parameter allows, {1}.")]
6    IndexBoundFailed(u64, u64),
7
8    /// The lottery was actually lost for the signature
9    #[error("Lottery for this epoch was lost.")]
10    LotteryLost,
11
12    /// This error occurs when the serialization of the raw bytes failed
13    #[error("Invalid bytes")]
14    SerializationError,
15}