pub trait Pairing {
    type G1Point;
    type G2Point;
    type GTPoint;

    // Required method
    fn pairing_map(
        left_point: &Self::G1Point,
        right_point: &Self::G2Point
    ) -> Option<Self::GTPoint>;
}

Required Associated Types§

Required Methods§

source

fn pairing_map( left_point: &Self::G1Point, right_point: &Self::G2Point ) -> Option<Self::GTPoint>

Applies the bilinear pairing operation to two curve points P1, P2 -> e(P1, P2). This trait is only relevant for “pairing-friendly” curves such as BN254 and BLS12-381.

Implementors§