From: Chris Duncan Date: Wed, 27 Nov 2024 21:33:11 +0000 (-0800) Subject: Use customized blake implementation and start trying to reoptimize it since it's... X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=f4856be59066b09910a3637cf6abcdddf394e028;p=libnemo.git Use customized blake implementation and start trying to reoptimize it since it's about 20% slower (but still really fast). --- diff --git a/src/lib/tools.ts b/src/lib/tools.ts index b70fad1..8ad449e 100644 --- a/src/lib/tools.ts +++ b/src/lib/tools.ts @@ -1,8 +1,8 @@ // SPDX-FileCopyrightText: 2024 Chris Duncan // SPDX-License-Identifier: GPL-3.0-or-later -import blake2b from 'blake2b' import { Account } from './account.js' +import { blake2b } from './blake2b.js' import { UNITS } from './constants.js' import { bytes, hex } from './convert.js' import { Rpc } from './rpc.js' diff --git a/src/lib/workers/nacl-nano.ts b/src/lib/workers/nacl-nano.ts index f800f94..9805cfd 100644 --- a/src/lib/workers/nacl-nano.ts +++ b/src/lib/workers/nacl-nano.ts @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: 2024 Chris Duncan // SPDX-License-Identifier: GPL-3.0-or-later //@ts-nocheck -import blake2b from 'blake2b' +import blake2b from './blake2b.js' 'use strict';