From ea9ab47740f7b06e598589ffff6c8c2e507921ff Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sun, 24 Nov 2024 20:47:52 -0800 Subject: [PATCH] Export only those functions to be used by nano implementation. --- src/lib/workers/nano25519.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/workers/nano25519.ts b/src/lib/workers/nano25519.ts index 754b50e..bc4b79a 100644 --- a/src/lib/workers/nano25519.ts +++ b/src/lib/workers/nano25519.ts @@ -1,6 +1,6 @@ // SPDX-FileCopyrightText: 2024 Chris Duncan // SPDX-License-Identifier: GPL-3.0-or-later -//@ts-nocheck + import blake2b from 'blake2b' 'use strict'; @@ -17,7 +17,7 @@ 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?: any) { var i, r = new Float64Array(16); if (init) for (i = 0; i < init.length; i++) r[i] = init[i]; return r; @@ -2410,4 +2410,4 @@ import blake2b from 'blake2b' } })(); - export { box, hash, randomBytes, scalarMult, secretbox, sign, verify } + export { sign, verify } -- 2.34.1