[][src]Trait tendermint_light_client::components::verifier::Verifier

pub trait Verifier: Send + Sync {
    pub fn verify(
        &self,
        untrusted: &LightBlock,
        trusted: &LightBlock,
        options: &Options,
        now: Time
    ) -> Verdict; }

The verifier checks:

a) whether a given untrusted light block is valid, and b) whether a given untrusted light block should be trusted based on a previously verified block.

Implements

  • [TMBC-VAL-CONTAINS-CORR.1]
  • [TMBC-VAL-COMMIT.1]

Required methods

pub fn verify(
    &self,
    untrusted: &LightBlock,
    trusted: &LightBlock,
    options: &Options,
    now: Time
) -> Verdict
[src]

Perform the verification.

Loading content...

Implementors

impl Verifier for ProdVerifier[src]

Loading content...