Enum risc0_zkvm::guest::env::VerifyIntegrityError
source · #[non_exhaustive]pub enum VerifyIntegrityError {
NonEmptyAssumptionsList,
PrunedValueError(PrunedValueError),
}
Expand description
Error encountered during a call to verify_integrity.
Note that an error is only returned for “provable” errors. In particular, if the host fails to find a receipt matching the requested claim digest, this is not a provable error. In this case, verify_integrity will not return.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NonEmptyAssumptionsList
Provided crate::ReceiptClaim struct contained a non-empty assumptions list.
This is a semantic error as only unconditional receipts can be verified inside the guest. If there is a conditional receipt to verify, it’s assumptions must first be verified to make the receipt unconditional.
PrunedValueError(PrunedValueError)
Metadata output was pruned and not equal to the zero hash. It is impossible to determine whether the assumptions list is empty.
Trait Implementations§
source§impl Debug for VerifyIntegrityError
impl Debug for VerifyIntegrityError
source§impl Display for VerifyIntegrityError
impl Display for VerifyIntegrityError
source§impl Error for VerifyIntegrityError
impl Error for VerifyIntegrityError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<PrunedValueError> for VerifyIntegrityError
impl From<PrunedValueError> for VerifyIntegrityError
source§fn from(err: PrunedValueError) -> Self
fn from(err: PrunedValueError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for VerifyIntegrityError
impl Send for VerifyIntegrityError
impl Sync for VerifyIntegrityError
impl Unpin for VerifyIntegrityError
impl UnwindSafe for VerifyIntegrityError
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