pub struct UniversalVerifier<E: PairingEngine> {
pub vk: VerifierKey<E>,
pub prepared_negative_powers_of_beta_h: Arc<BTreeMap<usize, <E::G2Affine as PairingCurve>::Prepared>>,
}
Expand description
UniversalVerifier
is used to check evaluation proofs for a given commitment.
Fields§
§vk: VerifierKey<E>
The verification key for the underlying KZG10 scheme.
prepared_negative_powers_of_beta_h: Arc<BTreeMap<usize, <E::G2Affine as PairingCurve>::Prepared>>
Information required to enforce degree bounds. Each pair is of the form (degree_bound, shifting_advice)
.
Each pair is in the form (degree_bound, \beta^{max_degree - i} H),
where H
is the generator of G2,
and i
is of the form 2^k - 1
for k
in 1
to log_2(max_degree)
.
Trait Implementations§
source§impl<E: Clone + PairingEngine> Clone for UniversalVerifier<E>where
E::G2Affine: Clone,
impl<E: Clone + PairingEngine> Clone for UniversalVerifier<E>where E::G2Affine: Clone,
source§fn clone(&self) -> UniversalVerifier<E>
fn clone(&self) -> UniversalVerifier<E>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<E: Debug + PairingEngine> Debug for UniversalVerifier<E>where
E::G2Affine: Debug,
impl<E: Debug + PairingEngine> Debug for UniversalVerifier<E>where E::G2Affine: Debug,
source§impl<E: Default + PairingEngine> Default for UniversalVerifier<E>where
E::G2Affine: Default,
impl<E: Default + PairingEngine> Default for UniversalVerifier<E>where E::G2Affine: Default,
source§fn default() -> UniversalVerifier<E>
fn default() -> UniversalVerifier<E>
Returns the “default value” for a type. Read more
source§impl<E: PartialEq + PairingEngine> PartialEq<UniversalVerifier<E>> for UniversalVerifier<E>where
E::G2Affine: PartialEq,
impl<E: PartialEq + PairingEngine> PartialEq<UniversalVerifier<E>> for UniversalVerifier<E>where E::G2Affine: PartialEq,
source§fn eq(&self, other: &UniversalVerifier<E>) -> bool
fn eq(&self, other: &UniversalVerifier<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<E: Eq + PairingEngine> Eq for UniversalVerifier<E>where E::G2Affine: Eq,
impl<E: PairingEngine> StructuralEq for UniversalVerifier<E>
impl<E: PairingEngine> StructuralPartialEq for UniversalVerifier<E>
Auto Trait Implementations§
impl<E> RefUnwindSafe for UniversalVerifier<E>where <E as PairingEngine>::G1Affine: RefUnwindSafe, <E as PairingEngine>::G2Affine: RefUnwindSafe, <<E as PairingEngine>::G2Affine as PairingCurve>::Prepared: RefUnwindSafe,
impl<E> Send for UniversalVerifier<E>
impl<E> Sync for UniversalVerifier<E>
impl<E> Unpin for UniversalVerifier<E>where <E as PairingEngine>::G1Affine: Unpin, <E as PairingEngine>::G2Affine: Unpin, <<E as PairingEngine>::G2Affine as PairingCurve>::Prepared: Unpin,
impl<E> UnwindSafe for UniversalVerifier<E>where <E as PairingEngine>::G1Affine: UnwindSafe, <E as PairingEngine>::G2Affine: UnwindSafe, <<E as PairingEngine>::G2Affine as PairingCurve>::Prepared: UnwindSafe + RefUnwindSafe,
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.