use thiserror::Error;
#[derive(Error, Debug)]
pub enum KZG10Errors {
#[error("cannot create PublicParameters with max degree as 0")]
DegreeIsZero,
#[error("cannot trim more than the maximum degree")]
TruncatedDegreeTooLarge,
#[error("cannot trim PublicParameters to a maximum size of zero")]
TruncatedDegreeIsZero,
#[error("proving key is not large enough to commit to said polynomial")]
PolynomialDegreeTooLarge,
#[error("cannot commit to polynomial of zero degree")]
PolynomialDegreeIsZero,
#[error("pairing check failed")]
PairingCheckFailure,
}