From ffa48689f965a126a3673fd2a8feac6e2659d176 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Sun, 12 Feb 2017 16:24:37 +0900 Subject: change the order of arguments of G1 and G2 --- src/bls.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bls.cpp') diff --git a/src/bls.cpp b/src/bls.cpp index e5fd300..5261e95 100644 --- a/src/bls.cpp +++ b/src/bls.cpp @@ -228,8 +228,8 @@ bool Sign::verify(const PublicKey& pub, const std::string& m) const G1 Hm; HashAndMapToG1(Hm, m); // Hm = Hash(m) Fp12 e1, e2; - BN::pairing(e1, getQ(), getInner().sHm); // e(Q, s Hm) - BN::pairing(e2, pub.getInner().sQ, Hm); // e(sQ, Hm) + BN::pairing(e1, getInner().sHm, getQ()); // e(s Hm, Q) + BN::pairing(e2, Hm, pub.getInner().sQ); // e(Hm, sQ) return e1 == e2; } -- cgit v1.2.3