Struct ark_poly_commit::multilinear_pc::data_structures::UniversalParams[][src]

pub struct UniversalParams<E: PairingEngine> {
    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>,
}

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

impl<E: PairingEngine> CanonicalDeserialize for UniversalParams<E>[src]

impl<E: PairingEngine> CanonicalSerialize for UniversalParams<E>[src]

impl<E: Clone + PairingEngine> Clone for UniversalParams<E> where
    E::G1Affine: Clone,
    E::G2Affine: Clone,
    E::G1Affine: Clone
[src]

impl<E: Debug + PairingEngine> Debug for UniversalParams<E> where
    E::G1Affine: Debug,
    E::G2Affine: Debug,
    E::G1Affine: Debug
[src]

Auto Trait Implementations

impl<E> RefUnwindSafe for UniversalParams<E> where
    <E as PairingEngine>::G1Affine: RefUnwindSafe,
    <E as PairingEngine>::G2Affine: RefUnwindSafe

impl<E> Send for UniversalParams<E>

impl<E> Sync for UniversalParams<E>

impl<E> Unpin for UniversalParams<E> where
    <E as PairingEngine>::G1Affine: Unpin,
    <E as PairingEngine>::G2Affine: Unpin

impl<E> UnwindSafe for UniversalParams<E> where
    <E as PairingEngine>::G1Affine: UnwindSafe,
    <E as PairingEngine>::G2Affine: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,