From 8a14dfc7af20bd6785dc072265f97f0a017e1711 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Fri, 23 Oct 2026 11:37:27 -0700 Subject: [PATCH] Update doc comment parameter types. --- src/assembly/ed25519/fep.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/assembly/ed25519/fep.ts b/src/assembly/ed25519/fep.ts index f0a5a41..c559c9f 100644 --- a/src/assembly/ed25519/fep.ts +++ b/src/assembly/ed25519/fep.ts @@ -32,7 +32,7 @@ export function fep (): FieldElementPair { /** * Set all values of a FieldElementPair to zero. * - * @param h FieldElementPair destination + * @param {FieldElementPair} h destination */ export function fep_0 (h: FieldElementPair): void { memory.fill(changetype(h), 0, 80) @@ -42,7 +42,7 @@ export function fep_0 (h: FieldElementPair): void { * Set the first limb of each FieldElement in the pair to 1 and all subsequent * limbs to zero. * - * @param h FieldElementPair destination + * @param {FieldElementPair} h destination */ export function fep_1 (h: FieldElementPair): void { fep_0(h) @@ -130,8 +130,8 @@ export function fep_copy (h: FieldElementPair, f: FieldElementPair): void { /** * Add a FieldElementPair to itself and store the sum. * - * @param h FieldElementPair sum destination - * @param f FieldElementPair summand source + * @param {FieldElementPair} h sum destination + * @param {FieldElementPair} f summand source */ export function fep_dbl (h: FieldElementPair, f: FieldElementPair): void { const f0 = v128.load(changetype(f), 0 << 4) @@ -763,10 +763,10 @@ export function fep_neg (h: FieldElementPair, f: FieldElementPair): void { * Postconditions: * |h| bounded by 1.01*2²⁵,1.01*2²⁴,1.01*2²⁵,1.01*2²⁴,etc. * - * @param h_a FieldElementPair A product destination - * @param f_a FieldElementPair A multiplicand source - * @param h_b FieldElementPair B product destination - * @param f_b FieldElementPair B multiplicand source + * @param {FieldElementPair} h_a A product destination + * @param {FieldElementPair} f_a A multiplicand source + * @param {FieldElementPair} h_b B product destination + * @param {FieldElementPair} f_b B multiplicand source */ export function fep_sq (h: FieldElementPair, f: FieldElementPair): void { const f01: v128 = v128.load(changetype(f), 0 << 4) @@ -966,10 +966,10 @@ export function fep_sq (h: FieldElementPair, f: FieldElementPair): void { * Postconditions: * |h| bounded by 1.01*2²⁵,1.01*2²⁴,1.01*2²⁵,1.01*2²⁴,etc. * - * @param h_a FieldElementPair A power destination - * @param f_a FieldElementPair A base source - * @param h_b FieldElementPair B power destination, doubled - * @param f_b FieldElementPair B base source + * @param {FieldElementPair} h_a A power destination + * @param {FieldElementPair} f_a A base source + * @param {FieldElementPair} h_b B power destination, doubled + * @param {FieldElementPair} f_b B base source */ export function fep_sq2 (h_a: FieldElementPair, f_a: FieldElementPair, h_b: FieldElementPair, f_b: FieldElementPair): void { // pack each f index in low lanes, high lanes are ignored -- 2.52.0