From 2e2df52f79bc2e02fcd5724aa32908c590bf13f4 Mon Sep 17 00:00:00 2001 From: yelhousni Date: Wed, 21 Oct 2020 12:06:06 +0100 Subject: [PATCH] replace frob(6) by unitary_inverse in bls12 --- src/pairing/bls12/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pairing/bls12/mod.rs b/src/pairing/bls12/mod.rs index 4ef7d54..ee26801 100644 --- a/src/pairing/bls12/mod.rs +++ b/src/pairing/bls12/mod.rs @@ -106,7 +106,7 @@ impl PG, P::Fp> for PairingVar

{ // 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);