]> zoso.dev Git - libnemo.git/commitdiff
Delete previously exported verify function since signatures are verified using sign...
authorChris Duncan <chris@zoso.dev>
Mon, 25 Nov 2024 05:42:31 +0000 (21:42 -0800)
committerChris Duncan <chris@zoso.dev>
Mon, 25 Nov 2024 05:42:31 +0000 (21:42 -0800)
src/lib/workers/nano25519.ts

index 7d14c2244ba4edb5d8ee20b14342fb20906b170c..37dbcb95e70e83f71f89170bb4c6948b6f5d4a98 100644 (file)
@@ -2256,14 +2256,6 @@ import blake2b from 'blake2b'
        sign.seedLength = crypto_sign_SEEDBYTES;\r
        sign.signatureLength = crypto_sign_BYTES;\r
 \r
-       const verify = function(x, y) {\r
-               checkArrayTypes(x, y);\r
-               // Zero length arguments are considered not equal.\r
-               if (x.length === 0 || y.length === 0) return false;\r
-               if (x.length !== y.length) return false;\r
-               return (vn(x, 0, y, 0, x.length) === 0) ? true : false;\r
-       };\r
-\r
        const setPRNG = function(fn) {\r
                randombytes = fn;\r
        };\r
@@ -2296,4 +2288,4 @@ import blake2b from 'blake2b'
                }\r
        })();\r
 \r
-       export { sign, verify }\r
+       export { sign }\r