From: Chris Duncan Date: Mon, 25 Nov 2024 05:42:31 +0000 (-0800) Subject: Delete previously exported verify function since signatures are verified using sign... X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=27d51d39ce09d98e6d70d0477cfe4f567f5cea4d;p=libnemo.git Delete previously exported verify function since signatures are verified using sign object functions. --- 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 }