]> zoso.dev Git - libnemo.git/commitdiff
Start resolving typescript errors.
authorChris Duncan <chris@zoso.dev>
Sat, 23 Nov 2024 09:02:22 +0000 (01:02 -0800)
committerChris Duncan <chris@zoso.dev>
Sat, 23 Nov 2024 09:02:22 +0000 (01:02 -0800)
src/lib/workers/nano25519.ts

index d194a283ae303cdf1ad0d3d05aa667c799b8678f..a866b400323147466fae83d6f65628c3adc6ed31 100644 (file)
@@ -18,14 +18,14 @@ import blake2b from 'blake2b'
        // See for details: https://docs.nano.org/integration-guides/the-basics/\r
        // Original source commit: https://github.com/dchest/tweetnacl-js/blob/71df1d6a1d78236ca3e9f6c788786e21f5a651a6/nacl-fast.js\r
        \r
-       var gf = function(init) {\r
+       var gf = function(init?) {\r
                var i, r = new Float64Array(16);\r
                if (init) for (i = 0; i < init.length; i++) r[i] = init[i];\r
                return r;\r
        };\r
        \r
        //  Pluggable, initialized in high-level API below.\r
-       var randombytes = function(/* x, n */) { throw new Error('no PRNG'); };\r
+       var randombytes = function(x, n) { throw new Error('no PRNG'); };\r
        \r
        var _0 = new Uint8Array(16);\r
        var _9 = new Uint8Array(32); _9[0] = 9;\r