From: Ardis Lu Date: Wed, 15 Mar 2023 04:57:56 +0000 (-0700) Subject: Update keccak256 implementation from Deno to noble X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=881715e03bc6953757f09630f4ef1ab6aaaad777;p=ens2hex Update keccak256 implementation from Deno to noble --- diff --git a/README.md b/README.md index c2538a5..9511a75 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,4 @@ Minimal website to look up the Ethereum hexadecimal (`0x`) address for every [ENS](https://ens.domains/) (`.eth`) name in a list. -The keccak256 algorithm is from [Deno](https://deno.land/)'s `std/hash` library, slightly modified to be used in the web browser. +The keccak256 algorithm is from Paul Miller's [noble-hashes](https://github.com/paulmillr/noble-hashes) library. diff --git a/index.html b/index.html index 2ac5ff5..4629db2 100644 --- a/index.html +++ b/index.html @@ -234,7 +234,7 @@

This tool uses Cloudflare's Ethereum gateway to query the ENS smart contract on the Ethereum blockchain. Click here or here to see a list of some other public nodes you could use.

In the JavaScript, the only third-party code is the keccak256 implementation used to hash the ENS names. The rest of the tool consists of about 80 lines of vanilla JavaScript to manipulate the names and prepare the JSON-RPC payload.

-

The keccak256 implementation was adapted from Deno (original code here).

+

The keccak256 implementation was bundled from Paul Miller's noble-hashes project.

Click here to view this site's source code on GitHub.

@@ -279,13 +279,8 @@