From 305b3402a8614ee043181944c2bd8dd3d4e0a12f Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sat, 23 Nov 2024 01:02:22 -0800 Subject: [PATCH] Start resolving typescript errors. --- src/lib/workers/nano25519.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/workers/nano25519.ts b/src/lib/workers/nano25519.ts index d194a28..a866b40 100644 --- a/src/lib/workers/nano25519.ts +++ b/src/lib/workers/nano25519.ts @@ -18,14 +18,14 @@ import blake2b from 'blake2b' // See for details: https://docs.nano.org/integration-guides/the-basics/ // Original source commit: https://github.com/dchest/tweetnacl-js/blob/71df1d6a1d78236ca3e9f6c788786e21f5a651a6/nacl-fast.js - var gf = function(init) { + var gf = function(init?) { var i, r = new Float64Array(16); if (init) for (i = 0; i < init.length; i++) r[i] = init[i]; return r; }; // Pluggable, initialized in high-level API below. - var randombytes = function(/* x, n */) { throw new Error('no PRNG'); }; + var randombytes = function(x, n) { throw new Error('no PRNG'); }; var _0 = new Uint8Array(16); var _9 = new Uint8Array(32); _9[0] = 9; -- 2.34.1