update-fork
MITSUNARI Shigeo 5 years ago
parent cb4fea5d66
commit 21dbb7ab8b
  1. 2
      include/mcl/op.hpp
  2. 3
      readme.md
  3. 2
      test/mapto_wb19_test.cpp

@ -23,7 +23,7 @@
namespace mcl {
static const int version = 0x107; /* 0xABC = A.BC */
static const int version = 0x108; /* 0xABC = A.BC */
/*
specifies available string format mode for X::setIoMode()

@ -10,6 +10,8 @@ mcl is a library for pairing-based cryptography,
which supports the optimal Ate pairing over BN curves and BLS12-381 curves.
# News
- `MCL_MAP_TO_MODE_HASH_TO_CURVE_07` is added for [draft-07](https://www.ietf.org/id/draft-irtf-cfrg-hash-to-curve-07.txt).
- The older version will be removed in the future.
- change DST of hash-to-curve for `MCL_MAP_TO_MODE_HASH_TO_CURVE_06`.
- add new hash-to-curve function of [draft-irtf-cfrg-hash-to-curve](https://cfrg.github.io/draft-irtf-cfrg-hash-to-curve/draft-irtf-cfrg-hash-to-curve.txt) at March 2020.
- call `setETHmode(MCL_MAP_TO_MODE_HASH_TO_CURVE_06);`
@ -310,6 +312,7 @@ If `MCL_USE_OLD_MAPTO_FOR_BLS12` is defined, then the old function is used, but
# History
- 2020/May/13 v1.08 support draft-irtf-cfrg-hash-to-curve-07
- 2020/Mar/26 v1.07 change DST for hash-to-curve-06
- 2020/Mar/15 v1.06 support hash-to-curve-06
- 2020/Jan/31 v1.05 mclBn_ethMsgToFp2 has changed to append zero byte at the end of msg

@ -850,7 +850,7 @@ void testHashToFp2v6(const T& mapto)
mcl::bn::hashAndMapToG2(P, "asdf", 4);
CYBOZU_BENCH_C("draft06 hashAndMapToG2", 1000, mcl::bn::hashAndMapToG2, P, "asdf", 4);
P.normalize();
printf("P=%s %s\n", P.x.getStr(10).c_str(), P.y.getStr(10).c_str());
// printf("P=%s %s\n", P.x.getStr(10).c_str(), P.y.getStr(10).c_str());
}
template<class T>

Loading…
Cancel
Save