Struct snarkvm_polycommit::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>Expand description
The key used to commit to polynomials.
powers_of_gamma_g: Vec<E::G1Affine>Expand description
The key used to commit to hiding polynomials.
shifted_powers_of_g: Option<Vec<E::G1Affine>>Expand description
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>>>Expand description
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>>Expand description
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: usizeExpand description
The maximum degree supported by the UniversalParams from which self was derived
Implementations
impl<E: PairingEngine> CommitterKey<E>[src]
impl<E: PairingEngine> CommitterKey<E>[src]Trait Implementations
impl<E: PairingEngine> CanonicalDeserialize for CommitterKey<E>[src]
impl<E: PairingEngine> CanonicalDeserialize for CommitterKey<E>[src]fn deserialize<R: Read>(reader: &mut R) -> Result<Self, SerializationError>[src]
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, SerializationError>[src]Reads Self from reader.
fn deserialize_uncompressed<R: Read>(
reader: &mut R
) -> Result<Self, SerializationError>[src]
fn deserialize_uncompressed<R: Read>(
reader: &mut R
) -> Result<Self, SerializationError>[src]Reads Self from reader without compression.
impl<E: PairingEngine> CanonicalSerialize for CommitterKey<E>[src]
impl<E: PairingEngine> CanonicalSerialize for CommitterKey<E>[src]fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), SerializationError>[src]
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), SerializationError>[src]Serializes self into writer.
fn serialized_size(&self) -> usize[src]
fn serialize_uncompressed<W: Write>(
&self,
writer: &mut W
) -> Result<(), SerializationError>[src]
fn serialize_uncompressed<W: Write>(
&self,
writer: &mut W
) -> Result<(), SerializationError>[src]Serializes self into writer without compression.
fn uncompressed_size(&self) -> usize[src]
impl<E: PairingEngine> Clone for CommitterKey<E>[src]
impl<E: PairingEngine> Clone for CommitterKey<E>[src]impl<E: PairingEngine> Debug for CommitterKey<E>[src]
impl<E: PairingEngine> Debug for CommitterKey<E>[src]impl<E: PairingEngine> Default for CommitterKey<E>[src]
impl<E: PairingEngine> Default for CommitterKey<E>[src]impl<E: PairingEngine> FromBytes for CommitterKey<E>[src]
impl<E: PairingEngine> FromBytes for CommitterKey<E>[src]impl<E: PairingEngine> Hash for CommitterKey<E>[src]
impl<E: PairingEngine> Hash for CommitterKey<E>[src]impl<E: PairingEngine> PCCommitterKey for CommitterKey<E>[src]
impl<E: PairingEngine> PCCommitterKey for CommitterKey<E>[src]fn max_degree(&self) -> usize[src]
fn max_degree(&self) -> usize[src]Outputs the maximum degree supported by the universal parameters
Self was derived from. Read more
fn supported_degree(&self) -> usize[src]
fn supported_degree(&self) -> usize[src]Outputs the maximum degree supported by the committer key.
impl<E: PairingEngine> ToBytes for CommitterKey<E>[src]
impl<E: PairingEngine> ToBytes for CommitterKey<E>[src]Auto Trait Implementations
impl<E> RefUnwindSafe for CommitterKey<E> where
<E as PairingEngine>::G1Affine: RefUnwindSafe,
<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,
<E as PairingEngine>::G1Affine: Unpin,
impl<E> UnwindSafe for CommitterKey<E> where
<E as PairingEngine>::G1Affine: RefUnwindSafe + UnwindSafe,
<E as PairingEngine>::G1Affine: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,