From f796b736299fbd6b3ca526e2246f6f4002918763 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Fri, 25 Oct 2019 18:33:52 +0900 Subject: [PATCH] [doc] add comments for mulByCofactorBLS12 --- api.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api.md b/api.md index 3c016a2..a2e285b 100644 --- a/api.md +++ b/api.md @@ -18,7 +18,8 @@ The map-to-G2 function if `mode = MCL_MAP_TO_MODE_ETH2`. void mclBn_setOriginalG2cofactor(int enable); ``` Use faster multiplication of `G2` with cofactor if `enable = 1`. -This is disabled if `mclBn_setMapToMode(MCL_MAP_TO_MODE_ETH2)`. +This is enabled if `mclBn_setMapToMode(MCL_MAP_TO_MODE_ETH2)`. +if `enable = 0`, then [the fast algorithm (mulByCofactorBLS12)](https://github.com/herumi/mcl/blob/master/include/mcl/bn.hpp#L463) is used. ## Minimum sample