Struct pairing::bls12_381::Bls12
[−]
[src]
pub struct Bls12;
Trait Implementations
impl Clone for Bls12
[src]
fn clone(&self) -> Bls12
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Bls12
[src]
impl Engine for Bls12
[src]
type Fr = Fr
This is the scalar field of the G1/G2 groups.
type G1 = G1
The projective representation of an element in G1.
type G1Affine = G1Affine
The affine representation of an element in G1.
type G2 = G2
The projective representation of an element in G2.
type G2Affine = G2Affine
The affine representation of an element in G2.
type Fq = Fq
The base field that hosts G1.
type Fqe = Fq2
The extension field that hosts G2.
type Fqk = Fq12
The extension field that hosts the target group of the pairing.
fn miller_loop<'a, I>(i: I) -> Self::Fqk where
I: IntoIterator<Item = &'a (&'a <Self::G1Affine as CurveAffine>::Prepared, &'a <Self::G2Affine as CurveAffine>::Prepared)>,
[src]
I: IntoIterator<Item = &'a (&'a <Self::G1Affine as CurveAffine>::Prepared, &'a <Self::G2Affine as CurveAffine>::Prepared)>,
Perform a miller loop with some number of (G1, G2) pairs.
fn final_exponentiation(r: &Fq12) -> Option<Fq12>
[src]
Perform final exponentiation of the result of a miller loop.
fn pairing<G1, G2>(p: G1, q: G2) -> Self::Fqk where
G1: Into<Self::G1Affine>,
G2: Into<Self::G2Affine>,
[src]
G1: Into<Self::G1Affine>,
G2: Into<Self::G2Affine>,
Performs a complete pairing operation (p, q)
.