Enum tendermint_light_client::predicates::errors::VerificationError [−][src]
pub enum VerificationError {
HeaderFromTheFuture {
header_time: Time,
now: Time,
},
ImplementationSpecific(String),
NotEnoughTrust(VotingPowerTally),
InsufficientSignersOverlap(VotingPowerTally),
DuplicateValidator(ValidatorAddress),
InvalidSignature {
signature: Vec<u8>,
validator: Box<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 {
expires_at: Time,
now: Time,
},
}Expand description
The various errors which can be raised by the verifier component, when validating or verifying a light block.
Variants
The header is from the future
ImplementationSpecific(String)Implementation specific error, for the purpose of extensibility
NotEnoughTrust(VotingPowerTally)Not enough trust because insufficient validators overlap
InsufficientSignersOverlap(VotingPowerTally)Insufficient signers overlap
DuplicateValidator(ValidatorAddress)Duplicate validator in commit signatures
Invalid commit signature
Show fields
Invalid commit
Hash mismatch for the next validator set
Show fields
Hash mismatch for the validator set
Show fields
Unexpected header of non-increasing height compared to what was expected
Show fields
BFT Time between the trusted state and a header does not increase monotonically
Show fields
Trusted state not within the trusting period
Show fields
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for VerificationErrorimpl Send for VerificationErrorimpl Sync for VerificationErrorimpl Unpin for VerificationErrorimpl UnwindSafe for VerificationErrorBlanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V