From 60ebd84ec789d68195c19f1a972e060200662d35 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sun, 24 Nov 2024 21:34:20 -0800 Subject: [PATCH] Delete previously exported scalarMult function. --- src/lib/workers/nano25519.ts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/lib/workers/nano25519.ts b/src/lib/workers/nano25519.ts index 78213bd..5ed4385 100644 --- a/src/lib/workers/nano25519.ts +++ b/src/lib/workers/nano25519.ts @@ -2212,26 +2212,6 @@ import blake2b from 'blake2b' secretbox.nonceLength = crypto_secretbox_NONCEBYTES; secretbox.overheadLength = crypto_secretbox_BOXZEROBYTES; - scalarMult = function(n, p) { - checkArrayTypes(n, p); - if (n.length !== crypto_scalarmult_SCALARBYTES) throw new Error('bad n size'); - if (p.length !== crypto_scalarmult_BYTES) throw new Error('bad p size'); - var q = new Uint8Array(crypto_scalarmult_BYTES); - crypto_scalarmult(q, n, p); - return q; - }; - - scalarMult.base = function(n) { - checkArrayTypes(n); - if (n.length !== crypto_scalarmult_SCALARBYTES) throw new Error('bad n size'); - var q = new Uint8Array(crypto_scalarmult_BYTES); - crypto_scalarmult_base(q, n); - return q; - }; - - scalarMult.scalarLength = crypto_scalarmult_SCALARBYTES; - scalarMult.groupElementLength = crypto_scalarmult_BYTES; - sign = function(msg, secretKey) { checkArrayTypes(msg, secretKey); if (secretKey.length !== crypto_sign_SECRETKEYBYTES) -- 2.34.1