From 9f0201846540fd46a75e79ab2612c1c2e0c032b9 Mon Sep 17 00:00:00 2001 From: Taylor Hornby Date: Thu, 22 Apr 2021 14:34:47 -0600 Subject: [PATCH] Clarify index-vs-exponent variable naming Co-authored-by: str4d --- orchard_sinsemilla.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orchard_sinsemilla.py b/orchard_sinsemilla.py index aef017d..b64fae1 100755 --- a/orchard_sinsemilla.py +++ b/orchard_sinsemilla.py @@ -115,8 +115,8 @@ def map_to_curve_simple_swu(u): e2 = (gx1.sqrt() is not None) 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 - y = y2.sqrt() + yy = gx1 if e2 else gx2 # If is_square(gx1), yy = gx1, else yy = gx2 + y = yy.sqrt() e3 = u.sgn0() == y.sgn0()