Struct snarkvm_algorithms::polycommit::sonic_pc::CommitterKey
source · 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>
Auto Trait Implementations§
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