Closed lgremy closed 3 years ago
Previously blsSetETHmode is used for selecting the draft version of hash-to-curve. But mapToG2 already is frozen, then it does not affect BLS_ETH anymore. Now the option affects selecting mapToG1 defined in the above spec or the older one for backward compatibility (for the BLS signature such that G1 is signature and G2 is public key). So it is misleading naming.
I have a question about the
blsSetETHmode
function. The name suggests that it has an impact when theBLS_ETH=1
mode is activated, however, the function sets theg_irtfHashAndMap
boolean totrue
which is only used in thetoG
function, but whenBLS_ETH
is not defined. Is it possible to clarify the purpose of the function?