mirror of
https://github.com/arnaucube/ark-r1cs-std.git
synced 2026-01-09 23:41:33 +01:00
replace frob(6) by unitary_inverse in bls12
This commit is contained in:
committed by
Pratyush Mishra
parent
636f93a3e5
commit
2e2df52f79
@@ -106,7 +106,7 @@ impl<P: Bls12Parameters> PG<Bls12<P>, P::Fp> for PairingVar<P> {
|
|||||||
// it work for curves with odd `P::X`.
|
// it work for curves with odd `P::X`.
|
||||||
// Hence we implement the slower algorithm from Table 1 below.
|
// 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| {
|
f.inverse().and_then(|mut f2| {
|
||||||
// f2 = f^(-1);
|
// f2 = f^(-1);
|
||||||
|
|||||||
Reference in New Issue
Block a user