Struct ed25519_zebra::batch::Verifier
source · [−]pub struct Verifier { /* private fields */ }
Expand description
A batch verification context.
Implementations
sourceimpl 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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Verifier
impl Send for Verifier
impl Sync for Verifier
impl Unpin for Verifier
impl UnwindSafe for Verifier
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more