#domain-name #hashing #eip-137

app namehash

CLI program for hashing domain names according to EIP-137

3 releases

0.1.2 May 7, 2023
0.1.1 May 7, 2023
0.1.0 May 7, 2023

#54 in #domain-name

Download history 20/week @ 2024-02-14 21/week @ 2024-02-21 12/week @ 2024-02-28 2/week @ 2024-03-06 11/week @ 2024-03-13 17/week @ 2024-03-27 34/week @ 2024-04-03

51 downloads per month

Apache-2.0

6KB
119 lines

namehash-rs

CLI program for hashing domain names according to EIP-137

Compute the namehash of individual domains or multiple domains at once from a file.

Usage

> .\namehash
Usage: namehash <COMMAND>

Commands:
  domain  Get the namehash of a single domain
  file    Get the namehashes of many domains at once
  help    Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help
>
> .\namehash domain 8bit.x
8bit.x: 0xb7c50b1d5594286e2fff20a5aa108021ffb1cc70c1afb67934e3729aa3e44c39
>
> .\namehash file -h
Get the namehashes of many domains at once

Usage: namehash file [OPTIONS] <INPUT>

Arguments:
  <INPUT>  Path to input file, domains to hash with 1 per line

Options:
  -o, --output <FILE>  File to save hashes to, stdout if not given
  -h, --help           Print help

Dependencies

~1.3–1.8MB
~35K SLoC