cfrg / draft-irtf-cfrg-hash-to-curve

Hashing to Elliptic Curves
Other
78 stars 27 forks source link

elligator 2 description improvement #329

Closed kwantam closed 2 years ago

kwantam commented 2 years ago

Elligator 2 says:

   6.  If is_square(gx1), set x = x1, y = sqrt(gx1), and sgn0(y) == 1.
   7.  Else set x = x2, y = sqrt(gx2), and sgn0(y) == 0.

The use of == here seems incorrect, since it's setting rather than checking.

(Reported by @iquerejeta)