[][src]Struct starsig::BatchVerifier

pub struct BatchVerifier<R: RngCore + CryptoRng> { /* fields omitted */ }

Batch signature verifier for use with Signature::verify_batched.

Methods

impl<R: RngCore + CryptoRng> BatchVerifier<R>[src]

pub fn new(rng: R) -> Self[src]

Returns a new instance for batch verification

pub fn with_capacity(rng: R, capacity: usize) -> Self[src]

Returns a new instance for batch verification with pre-allocated capacity n for verifying n simple schnorr signatures.

pub fn verify(self) -> Result<(), StarsigError>[src]

Performs the verification and returns the result.

Trait Implementations

impl<R: RngCore + CryptoRng> BatchVerification for BatchVerifier<R>[src]

Auto Trait Implementations

impl<R> Send for BatchVerifier<R> where
    R: Send

impl<R> Sync for BatchVerifier<R> where
    R: Sync

impl<R> Unpin for BatchVerifier<R> where
    R: Unpin

impl<R> UnwindSafe for BatchVerifier<R> where
    R: UnwindSafe

impl<R> RefUnwindSafe for BatchVerifier<R> where
    R: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self