2023-12-30 21:42:30 +00:00
|
|
|
use displaydoc::Display;
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, Display)]
|
|
|
|
pub enum ProofError {
|
|
|
|
/// failed to decode commitment proof
|
|
|
|
CommitmentProofDecodingFailed,
|
|
|
|
/// empty merkle root
|
|
|
|
EmptyMerkleRoot,
|
|
|
|
/// empty verified value
|
|
|
|
EmptyVerifiedValue,
|
|
|
|
/// invalid merkle proof
|
|
|
|
InvalidMerkleProof,
|
|
|
|
/// proof verification failed
|
2023-12-30 21:45:16 +00:00
|
|
|
VerificationFailure,
|
2023-12-30 21:42:30 +00:00
|
|
|
}
|