]> zoso.dev Git - libnemo.git/commitdiff
Export only those functions to be used by nano implementation.
authorChris Duncan <chris@zoso.dev>
Mon, 25 Nov 2024 04:47:52 +0000 (20:47 -0800)
committerChris Duncan <chris@zoso.dev>
Mon, 25 Nov 2024 04:47:52 +0000 (20:47 -0800)
src/lib/workers/nano25519.ts

index 754b50e21c39725d8be17287396bf9a543c80480..bc4b79a48a75181437dc515604680da0e9bd6ae7 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-FileCopyrightText: 2024 Chris Duncan <chris@zoso.dev>\r
 // SPDX-License-Identifier: GPL-3.0-or-later\r
-//@ts-nocheck\r
+\r
 import blake2b from 'blake2b'\r
 \r
        'use strict';\r
@@ -17,7 +17,7 @@ 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?: any) {\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
@@ -2410,4 +2410,4 @@ import blake2b from 'blake2b'
                }\r
        })();\r
        \r
-       export { box, hash, randomBytes, scalarMult, secretbox, sign, verify }\r
+       export { sign, verify }\r