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§
Sourcefn verify(
&mut self,
proof: &EncodedProof,
) -> Result<VerificationResult<Block>, Box<dyn Error + Send + Sync>>
fn verify( &mut self, proof: &EncodedProof, ) -> Result<VerificationResult<Block>, Box<dyn Error + Send + Sync>>
Verify a warp sync proof.
Sourcefn next_proof_context(&self) -> Block::Hash
fn next_proof_context(&self) -> Block::Hash
Hash to be used as the starting point for the next proof request.