[doc] add comments for mulByCofactorBLS12

update-fork
MITSUNARI Shigeo 5 years ago
parent a549f8dbdc
commit f796b73629
  1. 3
      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

Loading…
Cancel
Save