UniversalParams

Type Alias UniversalParams 

Source
pub type UniversalParams<E> = UniversalParams<E>;
Expand description

UniversalParams are the universal parameters for the KZG10 scheme.

Aliased Type§

pub struct UniversalParams<E> {
    pub powers_of_g: Vec<<E as Pairing>::G1Affine>,
    pub powers_of_gamma_g: BTreeMap<usize, <E as Pairing>::G1Affine>,
    pub h: <E as Pairing>::G2Affine,
    pub beta_h: <E as Pairing>::G2Affine,
    pub neg_powers_of_h: BTreeMap<usize, <E as Pairing>::G2Affine>,
    pub prepared_h: <E as Pairing>::G2Prepared,
    pub prepared_beta_h: <E as Pairing>::G2Prepared,
}

Fields§

§powers_of_g: Vec<<E as Pairing>::G1Affine>

Group elements of the form { \beta^i G }, where i ranges from 0 to degree.

§powers_of_gamma_g: BTreeMap<usize, <E as Pairing>::G1Affine>

Group elements of the form { \beta^i \gamma G }, where i ranges from 0 to degree.

§h: <E as Pairing>::G2Affine

The generator of G2.

§beta_h: <E as Pairing>::G2Affine

\beta times the above generator of G2.

§neg_powers_of_h: BTreeMap<usize, <E as Pairing>::G2Affine>

Group elements of the form { \beta^i G2 }, where i ranges from 0 to -degree.

§prepared_h: <E as Pairing>::G2Prepared

The generator of G2, prepared for use in pairings.

§prepared_beta_h: <E as Pairing>::G2Prepared

\beta times the above generator of G2, prepared for use in pairings.