pub struct CommitterKey<E: PairingEngine> {
pub powers_of_beta_g: Vec<E::G1Affine>,
pub lagrange_bases_at_beta_g: BTreeMap<usize, Vec<E::G1Affine>>,
pub powers_of_beta_times_gamma_g: Vec<E::G1Affine>,
pub shifted_powers_of_beta_g: Option<Vec<E::G1Affine>>,
pub shifted_powers_of_beta_times_gamma_g: Option<BTreeMap<usize, Vec<E::G1Affine>>>,
pub enforced_degree_bounds: Option<Vec<usize>>,
}Expand description
CommitterKey is used to commit to, and create evaluation proofs for, a
given polynomial.
Fields§
§powers_of_beta_g: Vec<E::G1Affine>The key used to commit to polynomials.
lagrange_bases_at_beta_g: BTreeMap<usize, Vec<E::G1Affine>>The key used to commit to polynomials in Lagrange basis.
powers_of_beta_times_gamma_g: Vec<E::G1Affine>The key used to commit to hiding polynomials.
shifted_powers_of_beta_g: Option<Vec<E::G1Affine>>The powers used to commit to shifted polynomials.
This is None if self does not support enforcing any degree bounds.
shifted_powers_of_beta_times_gamma_g: Option<BTreeMap<usize, Vec<E::G1Affine>>>The powers used to commit to shifted hiding polynomials.
This is None if self does not support enforcing any degree bounds.
enforced_degree_bounds: Option<Vec<usize>>The degree bounds that are supported by self.
Sorted in ascending order from smallest bound to largest bound.
This is None if self does not support enforcing any degree bounds.
Trait Implementations§
Source§impl<E: Debug + PairingEngine> Debug for CommitterKey<E>
impl<E: Debug + PairingEngine> Debug for CommitterKey<E>
Source§impl<E: PairingEngine> FromBytes for CommitterKey<E>
impl<E: PairingEngine> FromBytes for CommitterKey<E>
Source§fn from_bytes_le(bytes: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn from_bytes_le(bytes: &[u8]) -> Result<Self, Error>where
Self: Sized,
Returns
Self from a byte array in little-endian order.Source§fn from_bytes_le_unchecked(bytes: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn from_bytes_le_unchecked(bytes: &[u8]) -> Result<Self, Error>where
Self: Sized,
Same behavior as
Self::from_bytes_le but avoids costly checks.
This shall only be called when deserializing from a trusted source, such as local storage. Read moreSource§fn read_le_unchecked<R>(reader: R) -> Result<Self, Error>
fn read_le_unchecked<R>(reader: R) -> Result<Self, Error>
Same behavior as
Self::read_le but avoids costly checks.
This shall only be called when deserializing from a trusted source, such as local storage. Read moreAuto Trait Implementations§
impl<E> Freeze for CommitterKey<E>
impl<E> RefUnwindSafe for CommitterKey<E>
impl<E> Send for CommitterKey<E>
impl<E> Sync for CommitterKey<E>
impl<E> Unpin for CommitterKey<E>
impl<E> UnwindSafe for CommitterKey<E>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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