Trait blstrs::PairingCurveAffine[][src]

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; }
Expand description

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

Associated Types

Required methods

fn prepare(&self) -> Self::Prepared[src]

Prepares this element for pairing purposes.

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

Perform a pairing

Implementors

impl PairingCurveAffine for G1Affine[src]

type Prepared = G1Affine

type Pair = G2Affine

type PairingResult = Fp12

fn prepare(&self) -> Self::Prepared[src]

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

impl PairingCurveAffine for G2Affine[src]

type Prepared = G2Prepared

type Pair = G1Affine

type PairingResult = Fp12

fn prepare(&self) -> Self::Prepared[src]

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