pub struct UniversalParams<E: Pairing> {
pub num_vars: usize,
pub powers_of_g: Vec<EvaluationHyperCubeOnG1<E>>,
pub powers_of_h: Vec<EvaluationHyperCubeOnG2<E>>,
pub g: E::G1Affine,
pub h: E::G2Affine,
pub g_mask: Vec<E::G1Affine>,
}
Expand description
Public Parameter used by prover
Fields§
§num_vars: usize
number of variables
powers_of_g: Vec<EvaluationHyperCubeOnG1<E>>
pp_{num_vars}
, pp_{num_vars - 1}
, pp_{num_vars - 2}
, …, defined by XZZPD19
powers_of_h: Vec<EvaluationHyperCubeOnG2<E>>
pp_{num_vars}
, pp_{num_vars - 1}
, pp_{num_vars - 2}
, …, defined by XZZPD19
g: E::G1Affine
generator for G1
h: E::G2Affine
generator for G2
g_mask: Vec<E::G1Affine>
g^randomness
Trait Implementations§
source§impl<E: Pairing> CanonicalDeserialize for UniversalParams<E>
impl<E: Pairing> CanonicalDeserialize for UniversalParams<E>
source§fn deserialize_with_mode<R: Read>(
reader: R,
compress: Compress,
validate: Validate
) -> Result<Self, SerializationError>
fn deserialize_with_mode<R: Read>( reader: R, compress: Compress, validate: Validate ) -> Result<Self, SerializationError>
The general deserialize method that takes in customization flags.
fn deserialize_compressed<R>(reader: R) -> Result<Self, SerializationError>where R: Read,
fn deserialize_compressed_unchecked<R>( reader: R ) -> Result<Self, SerializationError>where R: Read,
fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError>where R: Read,
fn deserialize_uncompressed_unchecked<R>( reader: R ) -> Result<Self, SerializationError>where R: Read,
source§impl<E: Pairing> CanonicalSerialize for UniversalParams<E>
impl<E: Pairing> CanonicalSerialize for UniversalParams<E>
source§fn serialize_with_mode<W: Write>(
&self,
writer: W,
compress: Compress
) -> Result<(), SerializationError>
fn serialize_with_mode<W: Write>( &self, writer: W, compress: Compress ) -> Result<(), SerializationError>
The general serialize method that takes in customization flags.
fn serialized_size(&self, compress: Compress) -> usize
fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>where W: Write,
fn compressed_size(&self) -> usize
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>where W: Write,
fn uncompressed_size(&self) -> usize
source§impl<E: Clone + Pairing> Clone for UniversalParams<E>where
E::G1Affine: Clone,
E::G2Affine: Clone,
impl<E: Clone + Pairing> Clone for UniversalParams<E>where E::G1Affine: Clone, E::G2Affine: Clone,
source§fn clone(&self) -> UniversalParams<E>
fn clone(&self) -> UniversalParams<E>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<E: Debug + Pairing> Debug for UniversalParams<E>where
E::G1Affine: Debug,
E::G2Affine: Debug,
impl<E: Debug + Pairing> Debug for UniversalParams<E>where E::G1Affine: Debug, E::G2Affine: Debug,
source§impl<E: Pairing> Valid for UniversalParams<E>
impl<E: Pairing> Valid for UniversalParams<E>
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>( batch: impl Iterator<Item = &'a Self> + Send ) -> Result<(), SerializationError>where Self: 'a,
Auto Trait Implementations§
impl<E> RefUnwindSafe for UniversalParams<E>where <E as Pairing>::G1Affine: RefUnwindSafe, <E as Pairing>::G2Affine: RefUnwindSafe,
impl<E> Send for UniversalParams<E>
impl<E> Sync for UniversalParams<E>
impl<E> Unpin for UniversalParams<E>where <E as Pairing>::G1Affine: Unpin, <E as Pairing>::G2Affine: Unpin,
impl<E> UnwindSafe for UniversalParams<E>where <E as Pairing>::G1Affine: UnwindSafe, <E as Pairing>::G2Affine: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more