[][src]Trait blstrs::PairingCurveAffine

pub trait PairingCurveAffine: CurveAffine {
    type Prepared: Clone + Send + Sync + 'static;
    type Pair: PairingCurveAffine<Pair = Self>;
    type PairingResult: Field;
    fn prepare(&self) -> Self::Prepared;
fn pairing_with(&self, other: &Self::Pair) -> Self::PairingResult; }

Affine representation of an elliptic curve point that can be used to perform pairings.

Associated Types

type Prepared: Clone + Send + Sync + 'static

type Pair: PairingCurveAffine<Pair = Self>

type PairingResult: Field

Loading content...

Required methods

fn prepare(&self) -> Self::Prepared

Prepares this element for pairing purposes.

fn pairing_with(&self, other: &Self::Pair) -> Self::PairingResult

Perform a pairing

Loading content...

Implementors

impl PairingCurveAffine for G1Affine[src]

type Prepared = G1Affine

type Pair = G2Affine

type PairingResult = Fp12

impl PairingCurveAffine for G2Affine[src]

type Prepared = G2Prepared

type Pair = G1Affine

type PairingResult = Fp12

Loading content...