From 38dbea3d9969de39580818e71985f0d7c9b8f58f Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Sat, 28 Jan 2017 18:20:41 +0900 Subject: update calcG1 method --- src/bls.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/bls.cpp') diff --git a/src/bls.cpp b/src/bls.cpp index 2afdd33..e5fd300 100644 --- a/src/bls.cpp +++ b/src/bls.cpp @@ -35,8 +35,7 @@ static const G2& getQ() static void mapToG1(G1& P, const Fp& t) { - static mcl::bn::MapTo mapTo; - mapTo.calcG1(P, t); + BN::param.mapTo.calcG1(P, t); } static void HashAndMapToG1(G1& P, const std::string& m) -- cgit v1.2.3