]> zoso.dev Git - libnemo.git/commitdiff
Fix function declaration.
authorChris Duncan <chris@zoso.dev>
Mon, 25 Nov 2024 05:34:54 +0000 (21:34 -0800)
committerChris Duncan <chris@zoso.dev>
Mon, 25 Nov 2024 05:34:54 +0000 (21:34 -0800)
src/lib/workers/nano25519.ts

index 5ed438575d37d31f3ac54a14fce483e22424a083..6ebc3707c484b8f319c234c741124a65c6777ae3 100644 (file)
@@ -2212,7 +2212,7 @@ import blake2b from 'blake2b'
        secretbox.nonceLength = crypto_secretbox_NONCEBYTES;\r
        secretbox.overheadLength = crypto_secretbox_BOXZEROBYTES;\r
 \r
-       sign = function(msg, secretKey) {\r
+       const sign = function(msg, secretKey) {\r
                        checkArrayTypes(msg, secretKey);\r
                        if (secretKey.length !== crypto_sign_SECRETKEYBYTES)\r
                                throw new Error('bad secret key size');\r