[][src]Enum tendermint_light_client::predicates::errors::VerificationError

pub enum VerificationError {
    HeaderFromTheFuture {
        header_time: Time,
        now: Time,
    },
    ImplementationSpecific(String),
    NotEnoughTrust(VotingPowerTally),
    InsufficientSignersOverlap(VotingPowerTally),
    DuplicateValidator(ValidatorAddress),
    InvalidSignature {
        signature: Vec<u8>,
        validator: Validator,
        sign_bytes: Vec<u8>,
    },
    InvalidCommitValue {
        header_hash: Hash,
        commit_hash: Hash,
    },
    InvalidNextValidatorSet {
        header_next_validators_hash: Hash,
        next_validators_hash: Hash,
    },
    InvalidValidatorSet {
        header_validators_hash: Hash,
        validators_hash: Hash,
    },
    NonIncreasingHeight {
        got: Height,
        expected: Height,
    },
    NonMonotonicBftTime {
        header_bft_time: Time,
        trusted_header_bft_time: Time,
    },
    NotWithinTrustPeriod {
        at: Time,
        now: Time,
    },
}

The various errors which can be raised by the verifier component, when validating or verifying a light block.

Variants

HeaderFromTheFuture

Fields of HeaderFromTheFuture

header_time: Timenow: Time
ImplementationSpecific(String)
NotEnoughTrust(VotingPowerTally)
InsufficientSignersOverlap(VotingPowerTally)
DuplicateValidator(ValidatorAddress)
InvalidSignature

Fields of InvalidSignature

signature: Vec<u8>validator: Validatorsign_bytes: Vec<u8>
InvalidCommitValue

Fields of InvalidCommitValue

header_hash: Hashcommit_hash: Hash
InvalidNextValidatorSet

Fields of InvalidNextValidatorSet

header_next_validators_hash: Hashnext_validators_hash: Hash
InvalidValidatorSet

Fields of InvalidValidatorSet

header_validators_hash: Hashvalidators_hash: Hash
NonIncreasingHeight

Fields of NonIncreasingHeight

got: Heightexpected: Height
NonMonotonicBftTime

Fields of NonMonotonicBftTime

header_bft_time: Timetrusted_header_bft_time: Time
NotWithinTrustPeriod

Fields of NotWithinTrustPeriod

at: Timenow: Time

Implementations

impl VerificationError[src]

pub fn context(self, source: impl Into<BoxError>) -> Context<Self>[src]

Add additional context (i.e. include a source error and capture a backtrace). You can convert the resulting Context into an Error by calling .into().

Trait Implementations

impl Clone for VerificationError[src]

impl Debug for VerificationError[src]

impl<'de> Deserialize<'de> for VerificationError[src]

impl Display for VerificationError[src]

impl Error for VerificationError[src]

impl ErrorExt for VerificationError[src]

impl PartialEq<VerificationError> for VerificationError[src]

impl Serialize for VerificationError[src]

impl StructuralPartialEq for VerificationError[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,