pub struct BatchItem<E, J>{ /* private fields */ }Expand description
A ring proof preprocessed for multi-ring batch verification.
Implementations§
Source§impl<E, J> BatchItem<E, J>
impl<E, J> BatchItem<E, J>
Sourcepub fn new<T>(
verifier: &RingVerifier<E::ScalarField, KZG<E>, J, T>,
proof: RingProof<E::ScalarField, KZG<E>>,
result: Affine<J>,
) -> Self
pub fn new<T>( verifier: &RingVerifier<E::ScalarField, KZG<E>, J, T>, proof: RingProof<E::ScalarField, KZG<E>>, result: Affine<J>, ) -> Self
Prepares a ring proof for batch verification without accumulating it.
The returned item is independent of both any accumulator state and
the originating RingVerifier, so multiple proofs (even from
different rings) can be prepared in parallel.
Auto Trait Implementations§
impl<E, J> Freeze for BatchItem<E, J>
impl<E, J> RefUnwindSafe for BatchItem<E, J>
impl<E, J> Send for BatchItem<E, J>
impl<E, J> Sync for BatchItem<E, J>
impl<E, J> Unpin for BatchItem<E, J>
impl<E, J> UnsafeUnpin for BatchItem<E, J>
impl<E, J> UnwindSafe for BatchItem<E, J>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more