From eed00d968afa8850f3c5897eb7a404fc9f9484db Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Fri, 30 Oct 2026 12:56:16 -0700 Subject: [PATCH] Update variable name. --- src/assembly/ed25519/ge.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/assembly/ed25519/ge.ts b/src/assembly/ed25519/ge.ts index a4b86f8..02edb8e 100644 --- a/src/assembly/ed25519/ge.ts +++ b/src/assembly/ed25519/ge.ts @@ -148,7 +148,7 @@ export function ge_frombytes_negate_vartime (h: p3, s: StaticArray, const ge_frombytes_u: FieldElement = fe() const ge_frombytes_v: FieldElement = fe() -const ge_frombytes_vxx: FieldElement = fe() +const ge_frombytes_vx2: FieldElement = fe() const ge_frombytes_m_root_check: FieldElement = fe() const ge_frombytes_p_root_check: FieldElement = fe() const ge_frombytes_negx: FieldElement = fe() @@ -163,7 +163,7 @@ export function ge_frombytes (h: p3, s: StaticArray, ): i32 { const u = ge_frombytes_u const v = ge_frombytes_v - const vxx = ge_frombytes_vxx + const vx2 = ge_frombytes_vx2 const m_root_check = ge_frombytes_m_root_check const p_root_check = ge_frombytes_p_root_check const negx = ge_frombytes_negx @@ -187,15 +187,15 @@ export function ge_frombytes (h: p3, s: StaticArray, fe_pow22523(h.X, h.X, t_fe_0, t_fe_1, t_fe_2) fe_mul(h.X, u, h.X) - // vxx = vx² - fe_sq(vxx, h.X) + // vx2 = vx² + fe_sq(vx2, h.X) - // vxx = vx³, x_sqrtm1 = x√-1 - fe_mul_pair_sqrtm1(vxx, vxx, v, x_sqrtm1, h.X) + // vx2 = vx³, x_sqrtm1 = x√-1 + fe_mul_pair_sqrtm1(vx2, vx2, v, x_sqrtm1, h.X) // p = vx²+u // m = vx²-u - fe_addsub(p_root_check, m_root_check, vxx, u) + fe_addsub(p_root_check, m_root_check, vx2, u) has_p_root = fe_iszero(p_root_check, t_fe_0, t_u8x32) has_m_root = fe_iszero(m_root_check, t_fe_0, t_u8x32) -- 2.52.0