[−][src]Struct tendermint_light_client::components::verifier::ProdVerifier
Production implementation of the verifier.
For testing purposes, this implementation is parametrized by:
- A set of predicates used to validate a light block
- A voting power calculator
- A commit validator
- A header hasher
For regular use, one can construct a standard implementation with ProdVerifier::default()
.
Implementations
impl ProdVerifier
[src]
pub fn new(
predicates: impl VerificationPredicates + 'static,
voting_power_calculator: impl VotingPowerCalculator + 'static,
commit_validator: impl CommitValidator + 'static,
hasher: impl Hasher + 'static
) -> Self
[src]
predicates: impl VerificationPredicates + 'static,
voting_power_calculator: impl VotingPowerCalculator + 'static,
commit_validator: impl CommitValidator + 'static,
hasher: impl Hasher + 'static
) -> Self
Constructs a new instance of this struct
Trait Implementations
impl Default for ProdVerifier
[src]
impl Verifier for ProdVerifier
[src]
fn verify(
&self,
untrusted: &LightBlock,
trusted: &LightBlock,
options: &Options,
now: Time
) -> Verdict
[src]
&self,
untrusted: &LightBlock,
trusted: &LightBlock,
options: &Options,
now: Time
) -> Verdict
Auto Trait Implementations
impl !RefUnwindSafe for ProdVerifier
impl Send for ProdVerifier
impl !Sync for ProdVerifier
impl Unpin for ProdVerifier
impl !UnwindSafe for ProdVerifier
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,