Struct snarkvm_wasm::marlin_pc::CommitterKey [−][src]
pub struct CommitterKey<E> where
E: PairingEngine, { pub powers: Vec<<E as PairingEngine>::G1Affine, Global>, pub shifted_powers: Option<Vec<<E as PairingEngine>::G1Affine, Global>>, pub powers_of_gamma_g: Vec<<E as PairingEngine>::G1Affine, Global>, pub enforced_degree_bounds: Option<Vec<usize, Global>>, pub max_degree: usize, }
Expand description
CommitterKey is used to commit to and create evaluation proofs for a given
polynomial.
Fields
powers: Vec<<E as PairingEngine>::G1Affine, Global>The key used to commit to polynomials.
shifted_powers: Option<Vec<<E as PairingEngine>::G1Affine, Global>>The key used to commit to shifted polynomials.
This is None if self does not support enforcing any degree bounds.
powers_of_gamma_g: Vec<<E as PairingEngine>::G1Affine, Global>The key used to commit to hiding polynomials.
enforced_degree_bounds: Option<Vec<usize, Global>>The degree bounds that are supported by self.
In ascending order from smallest to largest.
This is None if self does not support enforcing any degree bounds.
max_degree: usizeThe maximum degree supported by the UniversalParams self was derived
from.
Implementations
impl<E> CommitterKey<E> where
E: PairingEngine, [src]
impl<E> CommitterKey<E> where
E: PairingEngine, [src]Trait Implementations
impl<E> CanonicalDeserialize for CommitterKey<E> where
E: PairingEngine, [src]
impl<E> CanonicalDeserialize for CommitterKey<E> where
E: PairingEngine, [src]pub fn deserialize<R>(
reader: &mut R
) -> Result<CommitterKey<E>, SerializationError> where
R: Read, [src]
pub fn deserialize<R>(
reader: &mut R
) -> Result<CommitterKey<E>, SerializationError> where
R: Read, [src]Reads Self from reader.
pub fn deserialize_uncompressed<R>(
reader: &mut R
) -> Result<CommitterKey<E>, SerializationError> where
R: Read, [src]
pub fn deserialize_uncompressed<R>(
reader: &mut R
) -> Result<CommitterKey<E>, SerializationError> where
R: Read, [src]Reads Self from reader without compression.
impl<E> CanonicalSerialize for CommitterKey<E> where
E: PairingEngine, [src]
impl<E> CanonicalSerialize for CommitterKey<E> where
E: PairingEngine, [src]pub fn serialize<W>(&self, writer: &mut W) -> Result<(), SerializationError> where
W: Write, [src]
pub fn serialize<W>(&self, writer: &mut W) -> Result<(), SerializationError> where
W: Write, [src]Serializes self into writer.
pub fn serialized_size(&self) -> usize[src]
pub fn serialize_uncompressed<W>(
&self,
writer: &mut W
) -> Result<(), SerializationError> where
W: Write, [src]
pub fn serialize_uncompressed<W>(
&self,
writer: &mut W
) -> Result<(), SerializationError> where
W: Write, [src]Serializes self into writer without compression.
pub fn uncompressed_size(&self) -> usize[src]
impl<E> Clone for CommitterKey<E> where
E: PairingEngine, [src]
impl<E> Clone for CommitterKey<E> where
E: PairingEngine, [src]pub fn clone(&self) -> CommitterKey<E>[src]
pub fn clone(&self) -> CommitterKey<E>[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl<E> Debug for CommitterKey<E> where
E: PairingEngine, [src]
impl<E> Debug for CommitterKey<E> where
E: PairingEngine, [src]impl<E> Default for CommitterKey<E> where
E: PairingEngine, [src]
impl<E> Default for CommitterKey<E> where
E: PairingEngine, [src]pub fn default() -> CommitterKey<E>[src]
pub fn default() -> CommitterKey<E>[src]Returns the “default value” for a type. Read more
impl<E> FromBytes for CommitterKey<E> where
E: PairingEngine, [src]
impl<E> FromBytes for CommitterKey<E> where
E: PairingEngine, [src]impl<E> Hash for CommitterKey<E> where
E: PairingEngine, [src]
impl<E> Hash for CommitterKey<E> where
E: PairingEngine, [src]impl<E> PCCommitterKey for CommitterKey<E> where
E: PairingEngine, [src]
impl<E> PCCommitterKey for CommitterKey<E> where
E: PairingEngine, [src]pub fn max_degree(&self) -> usize[src]
pub fn max_degree(&self) -> usize[src]Outputs the maximum degree supported by the universal parameters
Self was derived from. Read more
pub fn supported_degree(&self) -> usize[src]
pub fn supported_degree(&self) -> usize[src]Outputs the maximum degree supported by the committer key.
impl<E> ToBytes for CommitterKey<E> where
E: PairingEngine, [src]
impl<E> ToBytes for CommitterKey<E> where
E: PairingEngine, [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: UnwindSafe,
<E as PairingEngine>::G1Affine: 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>,