pub enum InclusionVerifError {
MalformedProof,
IndexOutOfRange,
TreeEmpty,
IncorrectHash,
}Expand description
An error representing what went wrong when verifying an inclusion proof
Variants§
MalformedProof
The proof is malformed, meaning it’s either too big for the tree, or its length is not a multiple of the hash function’s digest size.
IndexOutOfRange
The index of the leaf being verified exceeds the number of leaves in the tree
TreeEmpty
This root hash belongs to an empty tree. Empty trees cannot have proofs.
IncorrectHash
This root hash does not match the proof’s root hash
Trait Implementations§
Source§impl Clone for InclusionVerifError
impl Clone for InclusionVerifError
Source§fn clone(&self) -> InclusionVerifError
fn clone(&self) -> InclusionVerifError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InclusionVerifError
impl Debug for InclusionVerifError
Source§impl Display for InclusionVerifError
impl Display for InclusionVerifError
impl Copy for InclusionVerifError
Auto Trait Implementations§
impl Freeze for InclusionVerifError
impl RefUnwindSafe for InclusionVerifError
impl Send for InclusionVerifError
impl Sync for InclusionVerifError
impl Unpin for InclusionVerifError
impl UnwindSafe for InclusionVerifError
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