[][src]Enum geen::GeneError

pub enum GeneError {
    OutdatedProof,
    InvalidProof,
    RootMismatch,
    NonLeafNode,
    HashNotFound(usize),
    IncorrectPeakMap,
    Unexpected,
    BackendError(String),
    InvalidMerkleTree,
    CorruptDataStructure,
    MaximumSizeReached,
    OutOfRange,
    InvalidConfig,
}

Represents an error in proof creation, verification, or parsing.

Variants

OutdatedProof

This error occurs when we receive a proof that's outdated and cannot be auto-updated.

InvalidProof

This error occurs when the merkle proof is too short or too long, or does not lead to a node to which it should.

RootMismatch

Merkle proof root hash does not match when attempting to verify.

NonLeafNode

You tried to construct or verify a Merkle proof using a non-leaf node as the inclusion candidate

HashNotFound(usize)

There was no hash in the merkle tree backend with the given position

IncorrectPeakMap

The list of peak hashes provided in the proof has an error

Unexpected

Unexpected

BackendError(String)

A problem has been encountered with the backend

InvalidMerkleTree

The Merkle tree is not internally consistent. A parent hash isn't equal to the hash of its children

CorruptDataStructure

The next position was not a leaf node as expected

MaximumSizeReached

The tree has reached its maximum size

OutOfRange

A request was out of range

InvalidConfig

Conflicting or invalid configuration parameters provided.

Trait Implementations

impl Clone for GeneError[src]

impl Eq for GeneError[src]

impl PartialEq<GeneError> for GeneError[src]

impl Display for GeneError[src]

impl Debug for GeneError[src]

impl StructuralPartialEq for GeneError[src]

impl StructuralEq for GeneError[src]

impl Error for GeneError[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

impl<T> FromCast<T> for T

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> FromBits<T> for T

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> AsFail for T where
    T: Fail, 

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,