From: Chris Duncan Date: Mon, 25 Nov 2024 05:34:20 +0000 (-0800) Subject: Delete previously exported scalarMult function. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=60ebd84ec789d68195c19f1a972e060200662d35;p=libnemo.git Delete previously exported scalarMult function. --- 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)