mithril_stm/protocol/aggregate_signature/
error.rs1use super::AggregateSignatureType;
2
3#[derive(Debug, Clone, thiserror::Error)]
5pub enum AggregationError {
6 #[error("Not enough signatures. Got only {0} out of {1}.")]
8 NotEnoughSignatures(u64, u64),
9
10 #[error("Unsupported proof system: {0}")]
11 UnsupportedProofSystem(AggregateSignatureType),
12
13 #[error("Indices are not unique.")]
15 IndexNotUnique,
16}
17
18#[derive(Debug, Clone, thiserror::Error)]
20pub enum AggregateSignatureError {
21 #[error("Invalid bytes")]
23 SerializationError,
24
25 #[error("Batch verification of STM aggregate signatures failed")]
27 BatchInvalid,
28
29 #[error("Unsupported proof system: {0}")]
31 UnsupportedProofSystem(AggregateSignatureType),
32}