]> zoso.dev Git - libnemo.git/commitdiff
Delete previously exported scalarMult function.
authorChris Duncan <chris@zoso.dev>
Mon, 25 Nov 2024 05:34:20 +0000 (21:34 -0800)
committerChris Duncan <chris@zoso.dev>
Mon, 25 Nov 2024 05:34:20 +0000 (21:34 -0800)
src/lib/workers/nano25519.ts

index 78213bd9ebd4e68ae602802f6ce5e87ec247cc1a..5ed438575d37d31f3ac54a14fce483e22424a083 100644 (file)
@@ -2212,26 +2212,6 @@ import blake2b from 'blake2b'
        secretbox.nonceLength = crypto_secretbox_NONCEBYTES;\r
        secretbox.overheadLength = crypto_secretbox_BOXZEROBYTES;\r
 \r
-       scalarMult = function(n, p) {\r
-               checkArrayTypes(n, p);\r
-               if (n.length !== crypto_scalarmult_SCALARBYTES) throw new Error('bad n size');\r
-               if (p.length !== crypto_scalarmult_BYTES) throw new Error('bad p size');\r
-               var q = new Uint8Array(crypto_scalarmult_BYTES);\r
-               crypto_scalarmult(q, n, p);\r
-               return q;\r
-       };\r
-\r
-       scalarMult.base = function(n) {\r
-               checkArrayTypes(n);\r
-               if (n.length !== crypto_scalarmult_SCALARBYTES) throw new Error('bad n size');\r
-               var q = new Uint8Array(crypto_scalarmult_BYTES);\r
-               crypto_scalarmult_base(q, n);\r
-               return q;\r
-       };\r
-\r
-       scalarMult.scalarLength = crypto_scalarmult_SCALARBYTES;\r
-       scalarMult.groupElementLength = crypto_scalarmult_BYTES;\r
-\r
        sign = function(msg, secretKey) {\r
                        checkArrayTypes(msg, secretKey);\r
                        if (secretKey.length !== crypto_sign_SECRETKEYBYTES)\r