pub enum ConsistencyVerifError {
VerificationFailure,
MalformedProof,
OldTreeLarger,
OldTreeEmpty,
NewTreeTooBig,
}Expand description
An error representing what went wrong when verifying a consistency proof
Variants§
VerificationFailure
Either this root hash or the old root hash doesn’t match the root hashes calculated from the proof
MalformedProof
The proof is either not a multiple of the hash digest size, or not the right multiple
OldTreeLarger
The number of leaves in the old tree is greater than the number of leaves in the new tree. Since the new one is supposed to be the old one plus some number of additions, this makes no sense.
OldTreeEmpty
The given number of leaves in the old tree is 0, which is not allowed
NewTreeTooBig
The given number of leaves in the new tree is exceeds the max of ⌊u64::MAX / 2⌋
Trait Implementations§
Source§impl Clone for ConsistencyVerifError
impl Clone for ConsistencyVerifError
Source§fn clone(&self) -> ConsistencyVerifError
fn clone(&self) -> ConsistencyVerifError
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 ConsistencyVerifError
impl Debug for ConsistencyVerifError
Source§impl Display for ConsistencyVerifError
impl Display for ConsistencyVerifError
impl Copy for ConsistencyVerifError
Auto Trait Implementations§
impl Freeze for ConsistencyVerifError
impl RefUnwindSafe for ConsistencyVerifError
impl Send for ConsistencyVerifError
impl Sync for ConsistencyVerifError
impl Unpin for ConsistencyVerifError
impl UnwindSafe for ConsistencyVerifError
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