pub struct Bls12<P: Bls12Parameters>(_);
Trait Implementations
sourceimpl<P: Bls12Parameters> Clone for Bls12<P>
impl<P: Bls12Parameters> Clone for Bls12<P>
sourceimpl<P: Bls12Parameters> Debug for Bls12<P>
impl<P: 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: Bls12Parameters> Hash for Bls12<P>
impl<P: 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 Fqk = Fp12<P::Fp12Params>
type Fqk = Fp12<P::Fp12Params>
The extension field that hosts the target group of the pairing.
type Fr = <P::G1Parameters as ModelParameters>::ScalarField
type Fr = <P::G1Parameters as ModelParameters>::ScalarField
This is the scalar field of the G1/G2 groups.
type G1Projective = G1Projective<P>
type G1Projective = G1Projective<P>
The projective representation of an element in G1.
type G2Projective = G2Projective<P>
type G2Projective = G2Projective<P>
The projective representation of an element in G2.
sourcefn miller_loop<'a, I>(i: I) -> Self::Fqk where
I: Iterator<Item = (&'a <Self::G1Affine as PairingCurve>::Prepared, &'a <Self::G2Affine as PairingCurve>::Prepared)>,
fn miller_loop<'a, I>(i: I) -> Self::Fqk where
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::Fqk where
I: Iterator<Item = (&'a <Self::G1Affine as PairingCurve>::Prepared, &'a <Self::G2Affine as PairingCurve>::Prepared)>,
fn product_of_pairings<'a, I>(i: I) -> Self::Fqk where
I: Iterator<Item = (&'a <Self::G1Affine as PairingCurve>::Prepared, &'a <Self::G2Affine as PairingCurve>::Prepared)>,
Computes a product of pairings.
sourceimpl<P: Bls12Parameters> PartialEq<Bls12<P>> for Bls12<P>
impl<P: Bls12Parameters> PartialEq<Bls12<P>> for Bls12<P>
sourceimpl<P: Bls12Parameters> Serialize for Bls12<P>
impl<P: Bls12Parameters> Serialize for Bls12<P>
impl<P: Bls12Parameters> Copy for Bls12<P>
impl<P: Bls12Parameters> Eq for Bls12<P>
Auto Trait Implementations
impl<P> RefUnwindSafe for Bls12<P>
impl<P> Send for Bls12<P>
impl<P> Sync for Bls12<P>
impl<P> Unpin for Bls12<P>
impl<P> UnwindSafe for Bls12<P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more