From: Chris Duncan Date: Mon, 25 Nov 2024 05:30:25 +0000 (-0800) Subject: Delete previously exported hash function. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=45615cfdeac13a48edfd9997bbb43f816e0091ee;p=libnemo.git Delete previously exported hash function. --- diff --git a/src/lib/workers/nano25519.ts b/src/lib/workers/nano25519.ts index 15f7b35..78213bd 100644 --- a/src/lib/workers/nano25519.ts +++ b/src/lib/workers/nano25519.ts @@ -2306,15 +2306,6 @@ import blake2b from 'blake2b' sign.seedLength = crypto_sign_SEEDBYTES; sign.signatureLength = crypto_sign_BYTES; - hash = function(msg) { - checkArrayTypes(msg); - var h = new Uint8Array(crypto_hash_BYTES); - crypto_hash(h, msg, msg.length); - return h; - }; - - hash.hashLength = crypto_hash_BYTES; - const verify = function(x, y) { checkArrayTypes(x, y); // Zero length arguments are considered not equal.