pub trait Pairing {
    type G1: AbelianGroup;
    type G2: AbelianGroup;
    type GT: AbelianGroup;

    // Required methods
    fn miller_loop(p: Self::G1, q: Self::G2) -> Self::GT;
    fn final_exp(f: Self::GT) -> Self::GT;

    // Provided method
    fn pairing(p: Self::G1, q: Self::G2) -> Self::GT { ... }
}

Required Associated Types§

Required Methods§

source

fn miller_loop(p: Self::G1, q: Self::G2) -> Self::GT

source

fn final_exp(f: Self::GT) -> Self::GT

Provided Methods§

source

fn pairing(p: Self::G1, q: Self::G2) -> Self::GT

Implementors§