From: Chris Duncan Date: Sat, 7 Nov 2026 20:35:55 +0000 (-0800) Subject: Fix doc comments. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=7dd04aad8bcf364ddc02d54c5c4f502070d08924;p=nano25519.git Fix doc comments. --- diff --git a/src/assembly/ed25519/fe.ts b/src/assembly/ed25519/fe.ts index b92ed40..7147a50 100644 --- a/src/assembly/ed25519/fe.ts +++ b/src/assembly/ed25519/fe.ts @@ -955,7 +955,7 @@ export function fe_mul (f: FieldElement, a: FieldElement, b: FieldElement): void } /** - * `f₀ = a₀b₀√-1` + * `f = a√-1` * * Multiply a FieldElement with the Ed25519 constant `√-1` and store the product. * @@ -967,23 +967,23 @@ export function fe_mul_sqrtm1 (f: FieldElement, a: FieldElement): void { } /** - * `f₀ = a₀b₀; f₁ = a₁b₁√-1` + * `f₀ = a₀b₀; f₁ = a₁√-1` * * For two pairs of FieldElements, multiply pairwise in parallel, multiply the * second lane by the Ed25519 constant `√-1`, and store the product. * - * @param f_0 A product destination - * @param a_0 A multiplicand source - * @param b_0 A multiplicand source - * @param f_1 B product destination * √-1 - * @param a_1 B multiplicand source + * @param f_0 First product destination + * @param a_0 First multiplicand source + * @param b_0 First multiplicand source + * @param f_1 Second product destination * √-1 + * @param a_1 Second multiplicand source */ export function fe_mul_pair_sqrtm1 (f_0: FieldElement, a_0: FieldElement, b_0: FieldElement, f_1: FieldElement, a_1: FieldElement): void { fe_extmul_pair(f_0, a_0, b_0, f_1, a_1, sqrtm1_0123, sqrtm1_4567, sqrtm1_89xx) } /** - * `f₀ = a₀b₀d` + * `f = ad` * * Multiply a FieldElement with the Ed25519 constant `d` and store the product. * @@ -995,7 +995,7 @@ export function fe_mul_d (f: FieldElement, a: FieldElement): void { } /** - * `f₀ = 2a₀b₀d` + * `f = 2ad` * * Multiply a FieldElement with the Ed25519 constant `2d` and store the product. * @@ -1007,17 +1007,17 @@ export function fe_mul_2d (f: FieldElement, a: FieldElement): void { } /** - * `f₀ = a₀b₀; f₁ = a₁b₁d` + * `f₀ = a₀b₀; f₁ = a₁b₁` * * For two pairs of FieldElements, multiply pairwise in parallel and store the * product. * - * @param f_0 FieldElement A product destination - * @param a_0 FieldElement A multiplicand source - * @param b_0 FieldElement A multiplicand source - * @param f_1 FieldElement B product destination - * @param a_1 FieldElement B multiplicand source - * @param b_1 FieldElement B multiplicand source + * @param f_0 FieldElement First product destination + * @param a_0 FieldElement First multiplicand source + * @param b_0 FieldElement First multiplicand source + * @param f_1 FieldElement Second product destination + * @param a_1 FieldElement Second multiplicand source + * @param b_1 FieldElement Second multiplicand source */ export function fe_mul_pair (f_0: FieldElement, a_0: FieldElement, b_0: FieldElement, f_1: FieldElement, a_1: FieldElement, b_1: FieldElement): void { // Load all 10 limbs of second `b` to pass to helper function