pub enum ProofError {
InvalidMerkleProof,
MissingArtifactsDigest,
ArtifactsDigestMismatch,
}Available on crate feature
unstable only.Expand description
An error returned by OCS proof verification.
Variants§
InvalidMerkleProof
The Merkle proof did not authenticate the leaf at the given index
against the proof’s claimed tree_root.
MissingArtifactsDigest
The checkpoint summary’s checkpoint_commitments did not contain a
CheckpointArtifacts entry — the summary cannot be used to anchor
an OCS proof.
ArtifactsDigestMismatch
The reconstructed CheckpointArtifactsDigest (computed from the
proof’s tree_root) did not match the digest committed to by the
summary’s CheckpointArtifacts commitment.
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
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()
Source§impl From<MerkleError> for ProofError
impl From<MerkleError> for ProofError
Source§fn from(_: MerkleError) -> Self
fn from(_: MerkleError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProofError
impl PartialEq for ProofError
impl Eq for ProofError
impl StructuralPartialEq for ProofError
Auto Trait Implementations§
impl Freeze for ProofError
impl RefUnwindSafe for ProofError
impl Send for ProofError
impl Sync for ProofError
impl Unpin for ProofError
impl UnsafeUnpin for ProofError
impl UnwindSafe for ProofError
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more