use super::AggregateSignatureType;
#[derive(Debug, Clone, thiserror::Error)]
pub enum AggregationError {
#[error("Not enough signatures. Got only {0} out of {1}.")]
NotEnoughSignatures(u64, u64),
#[error("Unsupported proof system: {0}")]
UnsupportedProofSystem(AggregateSignatureType),
#[error("Indices are not unique.")]
IndexNotUnique,
}
#[derive(Debug, Clone, thiserror::Error)]
pub enum AggregateSignatureError {
#[error("Invalid bytes")]
SerializationError,
#[error("Batch verification of STM aggregate signatures failed")]
BatchInvalid,
#[error("Unsupported proof system: {0}")]
UnsupportedProofSystem(AggregateSignatureType),
}