Struct snarkvm_polycommit::marlin_pc::CommitterKey [−][src]
pub struct CommitterKey<E: PairingEngine> { pub powers: Vec<E::G1Affine>, pub shifted_powers: Option<Vec<E::G1Affine>>, pub powers_of_gamma_g: Vec<E::G1Affine>, pub enforced_degree_bounds: Option<Vec<usize>>, pub max_degree: usize, }
Expand description
CommitterKey
is used to commit to and create evaluation proofs for a given
polynomial.
Fields
powers: Vec<E::G1Affine>
The key used to commit to polynomials.
shifted_powers: Option<Vec<E::G1Affine>>
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::G1Affine>
The key used to commit to hiding polynomials.
enforced_degree_bounds: Option<Vec<usize>>
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: usize
The maximum degree supported by the UniversalParams
self
was derived
from.
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: 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 T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should 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 = T
The 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>,