pub struct PreparedVerifierKey<E: PairingEngine> {
pub prepared_vk: PreparedVerifierKey<E>,
pub degree_bounds_and_prepared_neg_powers_of_h: Option<Vec<(usize, <E::G2Affine as PairingCurve>::Prepared)>>,
pub max_degree: usize,
pub supported_degree: usize,
}
Expand description
PreparedVerifierKey
is used to check evaluation proofs for a given commitment.
Fields§
§prepared_vk: PreparedVerifierKey<E>
The verification key for the underlying KZG10 scheme.
degree_bounds_and_prepared_neg_powers_of_h: Option<Vec<(usize, <E::G2Affine as PairingCurve>::Prepared)>>
Information required to enforce degree bounds. Each pair
is of the form (degree_bound, shifting_advice)
.
This is None
if self
does not support enforcing any degree bounds.
max_degree: usize
The maximum degree supported by the UniversalParams
self
was derived
from.
supported_degree: usize
The maximum degree supported by the trimmed parameters that self
is
a part of.
Implementations§
source§impl<E: PairingEngine> PreparedVerifierKey<E>
impl<E: PairingEngine> PreparedVerifierKey<E>
sourcepub fn get_prepared_shift_power(
&self,
bound: usize
) -> Option<<E::G2Affine as PairingCurve>::Prepared>
pub fn get_prepared_shift_power( &self, bound: usize ) -> Option<<E::G2Affine as PairingCurve>::Prepared>
Find the appropriate shift for the degree bound.
Trait Implementations§
source§impl<E: Clone + PairingEngine> Clone for PreparedVerifierKey<E>where
E::G2Affine: Clone,
impl<E: Clone + PairingEngine> Clone for PreparedVerifierKey<E>where E::G2Affine: Clone,
source§fn clone(&self) -> PreparedVerifierKey<E>
fn clone(&self) -> PreparedVerifierKey<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 moreAuto Trait Implementations§
impl<E> RefUnwindSafe for PreparedVerifierKey<E>where <E as PairingEngine>::G1Affine: RefUnwindSafe, <<E as PairingEngine>::G2Affine as PairingCurve>::Prepared: RefUnwindSafe,
impl<E> Send for PreparedVerifierKey<E>
impl<E> Sync for PreparedVerifierKey<E>
impl<E> Unpin for PreparedVerifierKey<E>where <E as PairingEngine>::G1Affine: Unpin, <<E as PairingEngine>::G2Affine as PairingCurve>::Prepared: Unpin,
impl<E> UnwindSafe for PreparedVerifierKey<E>where <E as PairingEngine>::G1Affine: UnwindSafe, <<E as PairingEngine>::G2Affine as PairingCurve>::Prepared: UnwindSafe,
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