Clarify index-vs-exponent variable naming
Co-authored-by: str4d <jack@z.cash>
This commit is contained in:
parent
e141b76203
commit
9f02018465
|
@ -115,8 +115,8 @@ def map_to_curve_simple_swu(u):
|
||||||
e2 = (gx1.sqrt() is not None)
|
e2 = (gx1.sqrt() is not None)
|
||||||
|
|
||||||
x = x1 if e2 else x2 # If is_square(gx1), x = x1, else x = x2
|
x = x1 if e2 else x2 # If is_square(gx1), x = x1, else x = x2
|
||||||
y2 = gx1 if e2 else gx2 # If is_square(gx1), y2 = gx1, else y2 = gx2
|
yy = gx1 if e2 else gx2 # If is_square(gx1), yy = gx1, else yy = gx2
|
||||||
y = y2.sqrt()
|
y = yy.sqrt()
|
||||||
|
|
||||||
e3 = u.sgn0() == y.sgn0()
|
e3 = u.sgn0() == y.sgn0()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue