From: Chris Duncan Date: Mon, 25 Nov 2024 04:47:52 +0000 (-0800) Subject: Export only those functions to be used by nano implementation. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=ea9ab47740f7b06e598589ffff6c8c2e507921ff;p=libnemo.git Export only those functions to be used by nano implementation. --- 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 }