]> zoso.dev Git - libnemo.git/commitdiff
Delete previously exported hash function.
authorChris Duncan <chris@zoso.dev>
Mon, 25 Nov 2024 05:30:25 +0000 (21:30 -0800)
committerChris Duncan <chris@zoso.dev>
Mon, 25 Nov 2024 05:30:25 +0000 (21:30 -0800)
src/lib/workers/nano25519.ts

index 15f7b3582e86a6dd987cfa36c52e86d353ced5e9..78213bd9ebd4e68ae602802f6ce5e87ec247cc1a 100644 (file)
@@ -2306,15 +2306,6 @@ import blake2b from 'blake2b'
        sign.seedLength = crypto_sign_SEEDBYTES;\r
        sign.signatureLength = crypto_sign_BYTES;\r
 \r
-       hash = function(msg) {\r
-               checkArrayTypes(msg);\r
-               var h = new Uint8Array(crypto_hash_BYTES);\r
-               crypto_hash(h, msg, msg.length);\r
-               return h;\r
-       };\r
-\r
-       hash.hashLength = crypto_hash_BYTES;\r
-\r
        const verify = function(x, y) {\r
                checkArrayTypes(x, y);\r
                // Zero length arguments are considered not equal.\r