From ccdee5cfd58a04c2c84ad79fcecfb367f1ce9b3e Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sun, 24 Nov 2024 21:34:54 -0800 Subject: [PATCH] Fix function declaration. --- src/lib/workers/nano25519.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/workers/nano25519.ts b/src/lib/workers/nano25519.ts index 5ed4385..6ebc370 100644 --- a/src/lib/workers/nano25519.ts +++ b/src/lib/workers/nano25519.ts @@ -2212,7 +2212,7 @@ import blake2b from 'blake2b' secretbox.nonceLength = crypto_secretbox_NONCEBYTES; secretbox.overheadLength = crypto_secretbox_BOXZEROBYTES; - sign = function(msg, secretKey) { + const sign = function(msg, secretKey) { checkArrayTypes(msg, secretKey); if (secretKey.length !== crypto_sign_SECRETKEYBYTES) throw new Error('bad secret key size'); -- 2.34.1