pub trait VerificationStrategy<'params, Scheme: CommitmentScheme, V: Verifier<'params, Scheme>> {
    type Output;

    fn new(params: &'params Scheme::ParamsVerifier) -> Self;
    fn process(
        self,
        f: impl FnOnce(V::MSMAccumulator) -> Result<V::Guard, Error>
    ) -> Result<Self::Output, Error>; fn finalize(self) -> bool; }
Expand description

Trait representing a strategy for verifying Halo 2 proofs.

Required Associated Types

The output type of this verification strategy after processing a proof.

Required Methods

Creates new verification strategy instance

Obtains an MSM from the verifier strategy and yields back the strategy’s output.

Finalizes the batch and checks its validity.

Returns false if some proof was invalid. If the caller needs to identify specific failing proofs, it must re-process the proofs separately.

Implementors