pub enum ProofError {
Show 15 variants
Io(Error),
Document(DocumentError),
Snapshot {
source: Box<SnapshotError>,
},
Query {
source: Box<QueryError>,
},
Invalid {
reason: &'static str,
},
UnsupportedVersion {
found: u16,
supported: u16,
},
ProofLimitExceeded {
actual: u64,
maximum: u64,
},
LengthOverflow,
ChecksumMismatch,
DigestMismatch,
AnchorMismatch,
SnapshotAnchorMismatch,
OperationResultMismatch,
ReexecutionMismatch,
TimedOut,
}Expand description
Failure while encoding, reading, or verifying a result proof.
Variants§
Io(Error)
Proof file I/O failed.
Document(DocumentError)
Canonical structured document verification failed.
Snapshot
Snapshot witness verification failed.
Fields
source: Box<SnapshotError>Underlying snapshot failure.
Query
Structured query reexecution failed.
Fields
source: Box<QueryError>Underlying deterministic query failure.
Invalid
Proof bytes violate the canonical format.
UnsupportedVersion
Proof format is newer than this verifier.
ProofLimitExceeded
Proof file exceeds caller policy.
LengthOverflow
A canonical length or count cannot be represented safely.
ChecksumMismatch
Fast accidental-corruption check failed.
DigestMismatch
Canonical proof content digest failed.
AnchorMismatch
Proof anchor did not match caller-pinned trust state.
SnapshotAnchorMismatch
Snapshot metadata does not match the proof anchor.
OperationResultMismatch
Embedded operation and result variants disagree.
ReexecutionMismatch
Deterministic replay did not reproduce the embedded result.
TimedOut
End-to-end cooperative verification deadline expired.
Trait Implementations§
Source§impl Debug for ProofError
impl Debug for ProofError
Source§impl Display for ProofError
impl Display for ProofError
Source§impl Error for ProofError
impl Error for ProofError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()