pub struct Bls12<P: Bls12Parameters>(_);
Trait Implementations
sourceimpl<P: Clone + Bls12Parameters> Clone for Bls12<P>
impl<P: Clone + Bls12Parameters> Clone for Bls12<P>
sourceimpl<P: Debug + Bls12Parameters> Debug for Bls12<P>
impl<P: Debug + Bls12Parameters> Debug for Bls12<P>
sourceimpl<'de, P: Bls12Parameters> Deserialize<'de> for Bls12<P>
impl<'de, P: Bls12Parameters> Deserialize<'de> for Bls12<P>
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<P: Hash + Bls12Parameters> Hash for Bls12<P>
impl<P: Hash + Bls12Parameters> Hash for Bls12<P>
sourceimpl<P: Bls12Parameters> PairingEngine for Bls12<P>where
G1Affine<P>: PairingCurve<BaseField = <P::G1Parameters as ModelParameters>::BaseField, ScalarField = <P::G1Parameters as ModelParameters>::ScalarField, Projective = G1Projective<P>, PairWith = G2Affine<P>, Prepared = G1Prepared<P>, PairingResult = Fp12<P::Fp12Params>>,
G2Affine<P>: PairingCurve<BaseField = <P::G2Parameters as ModelParameters>::BaseField, ScalarField = <P::G1Parameters as ModelParameters>::ScalarField, Projective = G2Projective<P>, PairWith = G1Affine<P>, Prepared = G2Prepared<P>, PairingResult = Fp12<P::Fp12Params>>,
impl<P: Bls12Parameters> PairingEngine for Bls12<P>where
G1Affine<P>: PairingCurve<BaseField = <P::G1Parameters as ModelParameters>::BaseField, ScalarField = <P::G1Parameters as ModelParameters>::ScalarField, Projective = G1Projective<P>, PairWith = G2Affine<P>, Prepared = G1Prepared<P>, PairingResult = Fp12<P::Fp12Params>>,
G2Affine<P>: PairingCurve<BaseField = <P::G2Parameters as ModelParameters>::BaseField, ScalarField = <P::G1Parameters as ModelParameters>::ScalarField, Projective = G2Projective<P>, PairWith = G1Affine<P>, Prepared = G2Prepared<P>, PairingResult = Fp12<P::Fp12Params>>,
type Fq = <P as Bls12Parameters>::Fp
type Fq = <P as Bls12Parameters>::Fp
The base field that hosts G1.
type Fqe = Fp2<<P as Bls12Parameters>::Fp2Params>
type Fqe = Fp2<<P as Bls12Parameters>::Fp2Params>
The extension field that hosts G2.
type Fqk = Fp12<<P as Bls12Parameters>::Fp12Params>
type Fqk = Fp12<<P as Bls12Parameters>::Fp12Params>
The extension field that hosts the target group of the pairing.
type Fr = <<P as Bls12Parameters>::G1Parameters as ModelParameters>::ScalarField
type Fr = <<P as Bls12Parameters>::G1Parameters as ModelParameters>::ScalarField
This is the scalar field of the G1/G2 groups.
type G1Affine = Affine<<P as Bls12Parameters>::G1Parameters>
type G1Affine = Affine<<P as Bls12Parameters>::G1Parameters>
The affine representation of an element in G1.
type G1Projective = Projective<<P as Bls12Parameters>::G1Parameters>
type G1Projective = Projective<<P as Bls12Parameters>::G1Parameters>
The projective representation of an element in G1.
type G2Affine = Affine<<P as Bls12Parameters>::G2Parameters>
type G2Affine = Affine<<P as Bls12Parameters>::G2Parameters>
The affine representation of an element in G2.
type G2Projective = Projective<<P as Bls12Parameters>::G2Parameters>
type G2Projective = Projective<<P as Bls12Parameters>::G2Parameters>
The projective representation of an element in G2.
sourcefn miller_loop<'a, I>(i: I) -> Self::Fqkwhere
I: Iterator<Item = (&'a <Self::G1Affine as PairingCurve>::Prepared, &'a <Self::G2Affine as PairingCurve>::Prepared)>,
fn miller_loop<'a, I>(i: I) -> Self::Fqkwhere
I: Iterator<Item = (&'a <Self::G1Affine as PairingCurve>::Prepared, &'a <Self::G2Affine as PairingCurve>::Prepared)>,
Perform a miller loop with some number of (G1, G2) pairs.
sourcefn final_exponentiation(f: &Self::Fqk) -> Option<Self::Fqk>
fn final_exponentiation(f: &Self::Fqk) -> Option<Self::Fqk>
Perform final exponentiation of the result of a miller loop.
sourcefn product_of_pairings<'a, I>(i: I) -> Self::Fqkwhere
I: Iterator<Item = (&'a <Self::G1Affine as PairingCurve>::Prepared, &'a <Self::G2Affine as PairingCurve>::Prepared)>,
fn product_of_pairings<'a, I>(i: I) -> Self::Fqkwhere
I: Iterator<Item = (&'a <Self::G1Affine as PairingCurve>::Prepared, &'a <Self::G2Affine as PairingCurve>::Prepared)>,
Computes a product of pairings.
sourceimpl<P: PartialEq + Bls12Parameters> PartialEq<Bls12<P>> for Bls12<P>
impl<P: PartialEq + Bls12Parameters> PartialEq<Bls12<P>> for Bls12<P>
sourceimpl<P: Bls12Parameters> Serialize for Bls12<P>
impl<P: Bls12Parameters> Serialize for Bls12<P>
impl<P: Copy + Bls12Parameters> Copy for Bls12<P>
impl<P: Eq + Bls12Parameters> Eq for Bls12<P>
impl<P: Bls12Parameters> StructuralEq for Bls12<P>
impl<P: Bls12Parameters> StructuralPartialEq for Bls12<P>
Auto Trait Implementations
impl<P> RefUnwindSafe for Bls12<P>where
P: RefUnwindSafe,
impl<P> Send for Bls12<P>
impl<P> Sync for Bls12<P>
impl<P> Unpin for Bls12<P>where
P: Unpin,
impl<P> UnwindSafe for Bls12<P>where
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more