replace frob(6) by unitary_inverse in bls12

This commit is contained in:
yelhousni
2020-10-21 12:06:06 +01:00
committed by Pratyush Mishra
parent 636f93a3e5
commit 2e2df52f79

View File

@@ -106,7 +106,7 @@ impl<P: Bls12Parameters> PG<Bls12<P>, P::Fp> for PairingVar<P> {
// it work for curves with odd `P::X`.
// Hence we implement the slower algorithm from Table 1 below.
let f1 = f.frobenius_map(6)?;
let f1 = f.unitary_inverse()?;
f.inverse().and_then(|mut f2| {
// f2 = f^(-1);