Struct ark_poly_commit::sonic_pc::CommitterKey [−][src]
pub struct CommitterKey<E: PairingEngine> { pub powers_of_g: Vec<E::G1Affine>, pub powers_of_gamma_g: Vec<E::G1Affine>, pub shifted_powers_of_g: Option<Vec<E::G1Affine>>, pub shifted_powers_of_gamma_g: Option<BTreeMap<usize, Vec<E::G1Affine>>>, pub enforced_degree_bounds: Option<Vec<usize>>, pub max_degree: usize, }
Expand description
ComitterKey is used to commit to, and create evaluation proofs for, a given
polynomial.
Fields
powers_of_g: Vec<E::G1Affine>The key used to commit to polynomials.
powers_of_gamma_g: Vec<E::G1Affine>The key used to commit to hiding polynomials.
shifted_powers_of_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_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.
max_degree: usizeThe maximum degree supported by the UniversalParams from which self was derived
Implementations
Trait Implementations
Reads Self from reader.
Reads Self from reader without compression.
Reads self from reader without compression, and without performing
validity checks. Should be used only when the input is trusted. Read more
Serializes self into writer.
It is left up to a particular type for how it strikes the
serialization efficiency vs compression tradeoff.
For standard types (e.g. bool, lengths, etc.) typically an uncompressed
form is used, whereas for algebraic types compressed forms are used. Read more
Serializes self into writer without compression.
Serializes self into writer without compression, and without
performing validity checks. Should be used only when there is no
danger of adversarial manipulation of the output. Read more
Outputs the maximum degree supported by the universal parameters
Self was derived from. Read more
Outputs the maximum degree supported by the committer key.
Auto Trait Implementations
impl<E> RefUnwindSafe for CommitterKey<E> where
<E as PairingEngine>::G1Affine: RefUnwindSafe, impl<E> Send for CommitterKey<E>impl<E> Sync for CommitterKey<E>impl<E> Unpin for CommitterKey<E> where
<E as PairingEngine>::G1Affine: Unpin, impl<E> UnwindSafe for CommitterKey<E> where
<E as PairingEngine>::G1Affine: RefUnwindSafe + UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
fn hash_uncompressed<H>(&self) -> GenericArray<u8, <H as Digest>::OutputSize> where
H: Digest, [src]type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V