// SPDX-FileCopyrightText: 2024 Chris Duncan <chris@zoso.dev>\r
// SPDX-License-Identifier: GPL-3.0-or-later\r
-\r
+//@ts-nocheck\r
import blake2b from 'blake2b'\r
\r
(function(nacl) {\r
scalarmult(p, q, s);\r
}\r
\r
- function crypto_sign_keypair(pk, sk, seeded) {\r
+ function crypto_sign_keypair(pk, sk, seeded?) {\r
var d = new Uint8Array(64);\r
var p = [gf(), gf(), gf(), gf()];\r
var i;\r
if (sk.length !== crypto_box_SECRETKEYBYTES) throw new Error('bad secret key size');\r
}\r
\r
- function checkArrayTypes() {\r
- for (var i = 0; i < arguments.length; i++) {\r
- if (!(arguments[i] instanceof Uint8Array))\r
+ function checkArrayTypes(...args) {\r
+ for (var i = 0; i < args.length; i++) {\r
+ if (!(args[i] instanceof Uint8Array))\r
throw new TypeError('unexpected type, use Uint8Array');\r
}\r
}\r