pub enum VerifierError {
Show 14 variants
InvalidProofStructure(String),
PublicInputMismatch(String),
FriVerificationFailed(String),
ConstraintCheckFailed(String),
DeserializationError(String),
InvalidPolicyHash {
expected: String,
actual: String,
},
VerificationFailed(String),
PolicyMismatch {
expected: String,
actual: String,
},
LimitMismatch {
expected: u64,
actual: u64,
},
InvalidHexFormat {
field: String,
reason: String,
},
UnsupportedProofVersion {
version: u32,
supported: u32,
},
WitnessCommitmentMismatch,
PayloadAmountBindingRequired(String),
ProofTooLarge {
size: usize,
max_size: usize,
},
}Expand description
Errors that can occur during proof verification
Variants§
InvalidProofStructure(String)
Invalid proof structure
PublicInputMismatch(String)
Public input mismatch
FriVerificationFailed(String)
FRI verification failed
ConstraintCheckFailed(String)
Constraint check failed
DeserializationError(String)
Deserialization error
InvalidPolicyHash
Invalid policy hash
VerificationFailed(String)
Proof verification failed
PolicyMismatch
Policy ID mismatch between proof and expected policy
LimitMismatch
Limit value mismatch between proof and expected policy
InvalidHexFormat
Invalid hex format in public inputs
UnsupportedProofVersion
Unsupported proof version
WitnessCommitmentMismatch
Witness commitment mismatch
PayloadAmountBindingRequired(String)
Strict verification requires a payload-derived amount binding artifact.
ProofTooLarge
Proof is too large
Implementations§
Source§impl VerifierError
impl VerifierError
Sourcepub fn invalid_structure<S: Into<String>>(msg: S) -> Self
pub fn invalid_structure<S: Into<String>>(msg: S) -> Self
Create an invalid proof structure error
Sourcepub fn verification_failed<S: Into<String>>(msg: S) -> Self
pub fn verification_failed<S: Into<String>>(msg: S) -> Self
Create a verification failed error
Sourcepub fn policy_mismatch(expected: &str, actual: &str) -> Self
pub fn policy_mismatch(expected: &str, actual: &str) -> Self
Create a policy mismatch error
Sourcepub fn limit_mismatch(expected: u64, actual: u64) -> Self
pub fn limit_mismatch(expected: u64, actual: u64) -> Self
Create a limit mismatch error
Sourcepub fn invalid_hex(field: &str, reason: &str) -> Self
pub fn invalid_hex(field: &str, reason: &str) -> Self
Create an invalid hex format error
Sourcepub fn unsupported_version(version: u32) -> Self
pub fn unsupported_version(version: u32) -> Self
Create an unsupported proof version error
Trait Implementations§
Source§impl Debug for VerifierError
impl Debug for VerifierError
Source§impl Display for VerifierError
impl Display for VerifierError
Source§impl Error for VerifierError
impl Error for VerifierError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for VerifierError
impl RefUnwindSafe for VerifierError
impl Send for VerifierError
impl Sync for VerifierError
impl Unpin for VerifierError
impl UnsafeUnpin for VerifierError
impl UnwindSafe for VerifierError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more