use thiserror::Error;
use crate::StdError;
#[derive(Error, Debug)]
pub enum VerifyProofsV2Error {
#[error("Invalid set proof for {subject} hashes: {hashes:?}")]
InvalidSetProof {
subject: &'static str,
hashes: Vec<String>,
source: StdError,
},
#[error("There's no certified {0} to verify")]
NoCertifiedItem(&'static str),
#[error("Malformed data or unknown {0} set proof format")]
MalformedData(&'static str, #[source] StdError),
}