From: Chris Duncan Date: Mon, 25 Nov 2024 05:34:54 +0000 (-0800) Subject: Fix function declaration. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=ccdee5cfd58a04c2c84ad79fcecfb367f1ce9b3e;p=libnemo.git Fix function declaration. --- 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');