From 21dbb7ab8bad3526a0708b2ae94836d4da13ab98 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Wed, 13 May 2020 16:32:24 +0900 Subject: [PATCH] v1.08 --- include/mcl/op.hpp | 2 +- readme.md | 3 +++ test/mapto_wb19_test.cpp | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/mcl/op.hpp b/include/mcl/op.hpp index f6e64e6..5e35700 100644 --- a/include/mcl/op.hpp +++ b/include/mcl/op.hpp @@ -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() diff --git a/readme.md b/readme.md index 038219d..b6c782e 100644 --- a/readme.md +++ b/readme.md @@ -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 diff --git a/test/mapto_wb19_test.cpp b/test/mapto_wb19_test.cpp index b05e4b4..b7bfe63 100644 --- a/test/mapto_wb19_test.cpp +++ b/test/mapto_wb19_test.cpp @@ -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