From: Chris Duncan Date: Mon, 26 Oct 2026 18:59:44 +0000 (-0700) Subject: Deprecate unused functions. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=e5dccf1ab4913dba3b4c588a57a117b81a0dd509;p=nano25519.git Deprecate unused functions. --- diff --git a/src/assembly/ed25519/fep.ts b/src/assembly/ed25519/fep.ts index 9e3c40e..1171fbc 100644 --- a/src/assembly/ed25519/fep.ts +++ b/src/assembly/ed25519/fep.ts @@ -54,35 +54,6 @@ export function fep_unpack (f_a: FieldElement, f_b: FieldElement, f: FieldElemen } } -/** - * Unpacks the first lane of a FieldElementPair into a single FieldElement. - */ -export function fep_unpack_lane (f_a: FieldElement, f: FieldElementPair): void { - for (let i = 0, j = 0; i < 10; i++, j += 2) { - f_a[i] = f[j] - } -} - -/** - * Turns `[a0, b0, a1, b1, ...]` into `[a0, a1, ..., b0, b1, ...]` - */ -export function fep_unweave (h: FieldElementPair, f: FieldElementPair): void { - for (let i = 0, j = 0; i < 10; i++, j += 2) { - h[i] = f[j] - h[i + 10] = f[j + 1] - } -} - -/** - * Turns `[a0, a1, ..., b0, b1, ...]` into `[a0, b0, a1, b1, ...]` - */ -export function fep_weave (h: FieldElementPair, f: FieldElementPair): void { - for (let i = 0, j = 0; i < 10; i++, j += 2) { - h[j] = f[i] - h[j + 1] = f[i + 10] - } -} - /** * Add two FieldElement pairs and store the sum. *