Struct ed25519_zebra::batch::Verifier
source · pub struct Verifier { /* private fields */ }
Expand description
A batch verification context.
Implementations§
source§impl Verifier
impl Verifier
sourcepub fn queue<I: Into<Item>>(&mut self, item: I)
pub fn queue<I: Into<Item>>(&mut self, item: I)
Queue a (key, signature, message) tuple for verification.
sourcepub fn verify<R: RngCore + CryptoRng>(self, rng: R) -> Result<(), Error>
pub fn verify<R: RngCore + CryptoRng>(self, rng: R) -> Result<(), Error>
Perform batch verification, returning Ok(())
if all signatures were
valid and Err
otherwise.
Warning
Ed25519 has different verification rules for batched and non-batched verifications. This function does not have the same verification criteria as individual verification, which may reject some signatures this method accepts.