type BatchVerifier = Verifier<Bls12>;
Expand description
The type of the batch verifier.
Aliased Type§
struct BatchVerifier { /* private fields */ }
Implementations
§impl<E> Verifier<E>where
E: MultiMillerLoop,
<E as Engine>::G1: AddAssign,
impl<E> Verifier<E>where
E: MultiMillerLoop,
<E as Engine>::G1: AddAssign,
pub fn new() -> Verifier<E>
pub fn new() -> Verifier<E>
Construct a new batch verifier.
pub fn queue<I>(&mut self, item: I)where
I: Into<Item<E>>,
pub fn queue<I>(&mut self, item: I)where
I: Into<Item<E>>,
Queue a (proof, inputs) tuple for verification.
pub fn verify<R>(
self,
rng: R,
vk: &VerifyingKey<E>,
) -> Result<(), VerificationError>
pub fn verify<R>( self, rng: R, vk: &VerifyingKey<E>, ) -> Result<(), VerificationError>
Perform batch verification with a particular VerifyingKey
, returning
Ok(())
if all proofs were verified and VerificationError
otherwise.
pub fn verify_multicore(
self,
vk: &VerifyingKey<E>,
) -> Result<(), VerificationError>
pub fn verify_multicore( self, vk: &VerifyingKey<E>, ) -> Result<(), VerificationError>
Perform batch verification with a particular VerifyingKey
, returning
Ok(())
if all proofs were verified and VerificationError
otherwise.
This performs the bulk of internal arithmetic over the global rayon threadpool.