Struct oasis_core_runtime::consensus::tendermint::verifier::NopVerifier
source · pub struct NopVerifier { /* private fields */ }
Expand description
A verifier which performs no verification.
Implementations§
Trait Implementations§
source§impl Verifier for NopVerifier
impl Verifier for NopVerifier
source§fn sync<'life0, 'async_trait>(
&'life0 self,
height: u64,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn sync<'life0, 'async_trait>(
&'life0 self,
height: u64,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Synchronize the verifier state up to including the passed consensus height.
source§fn verify<'life0, 'async_trait>(
&'life0 self,
consensus_block: LightBlock,
_runtime_header: Header,
_epoch: EpochTime,
) -> Pin<Box<dyn Future<Output = Result<ConsensusState, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn verify<'life0, 'async_trait>(
&'life0 self,
consensus_block: LightBlock,
_runtime_header: Header,
_epoch: EpochTime,
) -> Pin<Box<dyn Future<Output = Result<ConsensusState, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Verify that the given runtime header is valid at the given consensus layer block and return
the consensus layer state accessor for that block. Read more
source§fn verify_for_query<'life0, 'async_trait>(
&'life0 self,
consensus_block: LightBlock,
_runtime_header: Header,
_epoch: EpochTime,
) -> Pin<Box<dyn Future<Output = Result<ConsensusState, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn verify_for_query<'life0, 'async_trait>(
&'life0 self,
consensus_block: LightBlock,
_runtime_header: Header,
_epoch: EpochTime,
) -> Pin<Box<dyn Future<Output = Result<ConsensusState, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Verify that the given runtime header is valid at the given consensus layer block and return
the consensus layer state accessor for that block. Read more
source§fn unverified_state<'life0, 'async_trait>(
&'life0 self,
consensus_block: LightBlock,
) -> Pin<Box<dyn Future<Output = Result<ConsensusState, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn unverified_state<'life0, 'async_trait>(
&'life0 self,
consensus_block: LightBlock,
) -> Pin<Box<dyn Future<Output = Result<ConsensusState, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the consensus layer state accessor for the given consensus layer block WITHOUT
performing any verification. This method should only be used for operations that do not
require integrity guarantees.
source§fn latest_state<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ConsensusState, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn latest_state<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ConsensusState, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the latest verified consensus layer state. Read more
source§fn state_at<'life0, 'async_trait>(
&'life0 self,
height: u64,
) -> Pin<Box<dyn Future<Output = Result<ConsensusState, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn state_at<'life0, 'async_trait>(
&'life0 self,
height: u64,
) -> Pin<Box<dyn Future<Output = Result<ConsensusState, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the verified consensus layer state for a given height. Read more
Auto Trait Implementations§
impl Freeze for NopVerifier
impl !RefUnwindSafe for NopVerifier
impl Send for NopVerifier
impl Sync for NopVerifier
impl Unpin for NopVerifier
impl !UnwindSafe for NopVerifier
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more