pub enum MultiProofError {
InvalidProofLength,
InvalidRootChild,
InvalidTotalHashes,
NoLeaves,
}Expand description
An error that occurred while verifying a multi-proof.
TODO: Once https://github.com/rust-lang/rust/issues/103765 is resolved,
we should derive core::error::Error.
Variants§
InvalidProofLength
The proof length does not match the flags.
InvalidRootChild
Tried to access uninitialized memory.
This happens when the proof is too long, which makes the verification procedure try to access uninitialized memory, which may result in an invalid root.
For more information see this vulnerability.
InvalidTotalHashes
The number of leaves and proof members does not match the number of hashes necessary to complete the verification.
NoLeaves
No leaves were provided for a non-trivial tree.
Trait Implementations§
Source§impl Debug for MultiProofError
impl Debug for MultiProofError
Source§impl Display for MultiProofError
impl Display for MultiProofError
Source§impl PartialEq for MultiProofError
impl PartialEq for MultiProofError
impl StructuralPartialEq for MultiProofError
Auto Trait Implementations§
impl Freeze for MultiProofError
impl RefUnwindSafe for MultiProofError
impl Send for MultiProofError
impl Sync for MultiProofError
impl Unpin for MultiProofError
impl UnwindSafe for MultiProofError
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