solana_curve25519::curve_syscall_traits

Trait Pairing

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§