[−][src]Struct starsig::BatchVerifier
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]
fn append<I, J>(
&mut self,
basepoint_scalar: I::Item,
dynamic_scalars: I,
dynamic_points: J
) where
I: IntoIterator,
I::Item: Borrow<Scalar>,
J: IntoIterator<Item = Option<RistrettoPoint>>,
[src]
&mut self,
basepoint_scalar: I::Item,
dynamic_scalars: I,
dynamic_points: J
) where
I: IntoIterator,
I::Item: Borrow<Scalar>,
J: IntoIterator<Item = Option<RistrettoPoint>>,
Auto Trait Implementations
impl<R> Send for BatchVerifier<R> where
R: Send,
R: Send,
impl<R> Sync for BatchVerifier<R> where
R: Sync,
R: Sync,
impl<R> Unpin for BatchVerifier<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for BatchVerifier<R> where
R: UnwindSafe,
R: UnwindSafe,
impl<R> RefUnwindSafe for BatchVerifier<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self