Skip to main content

weil_pairing

Function weil_pairing 

Source
pub fn weil_pairing(c: &Curve, pp: &Point, qq: &Point, n: u64) -> Option<BigInt>
Expand description

The Weil pairing e_N(P, Q) ∈ μ_N for independent N-torsion points P, Q, via Miller: e_N(P,Q) = (−1)ᴺ · f_{N,P}(Q) / f_{N,Q}(P). Bilinear, alternating, non-degenerate, and (the SIKE- relevant law) isogeny-compatible. None if a Miller evaluation degenerates (e.g. dependent points).