Struct ark_poly_commit::marlin::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
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: 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 = T
Should always be Self
pub fn vzip(self) -> V