Closed janus closed 4 years ago
The original conditions were different, but they eventually became the same except for the value pStr
.
So it may be better to unify them as you say.
Thank you for pointing it.
I would like to read your code that covers only bls12_381 , which files should I go through?
mcl supports both BN and BLS12 and they are not separated. At first, please could you see https://github.com/herumi/mcl/blob/master/include/mcl/bn.hpp#L1672-L1727 and search inner functions as you need?
I've fixed it. Thank you. https://github.com/herumi/mcl/commit/b399592446caae925cb775456ac4952da7de3872
The IF statements have same conditional expression, however one is meant to set
primeMode = PM_NIST_P192;
and the otherprimeMode = PM_NIST_P521;
, is the correct? If yes, what do you intend to achieve by this coding structure?