CLI program for hashing domain names according to EIP-137 https://crates.io/crates/namehash
Go to file
2024-07-06 22:59:11 +01:00
.github/workflows Bump to v0.1.2 to trigger release build 2023-05-07 22:33:03 +01:00
src Add file input and optional file output 2023-05-07 18:45:47 +01:00
.gitignore Initial commit 2023-05-07 17:31:17 +01:00
Cargo.lock Update deps, v0.1.3 2024-07-06 22:59:11 +01:00
Cargo.toml Update deps, v0.1.3 2024-07-06 22:59:11 +01:00
README.md Create README.md 2023-05-07 22:46:12 +01:00

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