diff --git a/include/mcl/bn.hpp b/include/mcl/bn.hpp index 072efab..f2a3885 100644 --- a/include/mcl/bn.hpp +++ b/include/mcl/bn.hpp @@ -944,6 +944,8 @@ struct Param { GLV1::initForBN(z, isBLS12, cp.curveType); GLV2T::init(z, isBLS12); basePoint.clear(); + G1::setOrder(r); + G2::setOrder(r); *pb = true; } void initG1only(bool *pb, const mcl::EcParam& para) @@ -2166,6 +2168,8 @@ inline void init(bool *pb, const mcl::CurveParam& cp = mcl::BN254, fp::Mode mode Fp12::setPowArrayGLV(local::powArrayGLV2, local::powVecNGLV2); G1::setCompressedExpression(); G2::setCompressedExpression(); + verifyOrderG1(false); + verifyOrderG2(false); *pb = true; }