From 27d51d39ce09d98e6d70d0477cfe4f567f5cea4d Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sun, 24 Nov 2024 21:42:31 -0800 Subject: [PATCH] Delete previously exported verify function since signatures are verified using sign object functions. --- src/lib/workers/nano25519.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/lib/workers/nano25519.ts b/src/lib/workers/nano25519.ts index 7d14c22..37dbcb9 100644 --- a/src/lib/workers/nano25519.ts +++ b/src/lib/workers/nano25519.ts @@ -2256,14 +2256,6 @@ import blake2b from 'blake2b' sign.seedLength = crypto_sign_SEEDBYTES; sign.signatureLength = crypto_sign_BYTES; - const verify = function(x, y) { - checkArrayTypes(x, y); - // Zero length arguments are considered not equal. - if (x.length === 0 || y.length === 0) return false; - if (x.length !== y.length) return false; - return (vn(x, 0, y, 0, x.length) === 0) ? true : false; - }; - const setPRNG = function(fn) { randombytes = fn; }; @@ -2296,4 +2288,4 @@ import blake2b from 'blake2b' } })(); - export { sign, verify } + export { sign } -- 2.34.1