arnaucube
arnaucube/ark-r1cs-stdPublic Self-hosted repository
replace frob(6) by unitary_inverse in bls12
yelhousni youssef.housni21@gmail.com
Wed, 21 Oct 2020 12:06:06 +0100
commit

2e2df52f79bc2e02fcd5724aa32908c590bf13f4

parent

636f93a3e5fea8f2165f725f2edded544159a978

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/pairing/bls12/mod.rs → src/pairing/bls12/mod.rs

@@ -106,7 +106,7 @@ // We don't use their "faster" formula because it is difficult to make

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