Verifier

Trait Verifier 

Source
pub trait Verifier<Block: BlockT>: Send + Sync {
    // Required methods
    fn verify(
        &mut self,
        proof: &EncodedProof,
    ) -> Result<VerificationResult<Block>, Box<dyn Error + Send + Sync>>;
    fn next_proof_context(&self) -> Block::Hash;
    fn status(&self) -> Option<String>;
}
Expand description

Verifier for warp sync proofs. Each verifier operates in a specific context.

Required Methods§

Source

fn verify( &mut self, proof: &EncodedProof, ) -> Result<VerificationResult<Block>, Box<dyn Error + Send + Sync>>

Verify a warp sync proof.

Source

fn next_proof_context(&self) -> Block::Hash

Hash to be used as the starting point for the next proof request.

Source

fn status(&self) -> Option<String>

Get status text for progress reporting

Implementors§