Socket
Book a DemoInstallSign in
Socket

eth-ens-namehash

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eth-ens-namehash

A simple module for generating ENS namehashes per spec https://github.com/ethereum/EIPs/issues/137

2.0.8
latest
Source
npmnpm
Version published
Weekly downloads
473K
37.05%
Maintainers
1
Weekly downloads
 
Created

What is eth-ens-namehash?

The eth-ens-namehash package is a JavaScript library for generating ENS (Ethereum Name Service) namehashes. It provides utility functions to convert human-readable ENS names into a format that can be used in smart contracts and other Ethereum-based applications.

What are eth-ens-namehash's main functionalities?

Namehash Generation

This feature allows you to generate a namehash for a given ENS name. The namehash is a unique identifier for ENS names that can be used in smart contracts.

const namehash = require('eth-ens-namehash');
const hash = namehash.hash('example.eth');
console.log(hash);

Normalization

This feature normalizes ENS names to ensure they are in a standard format. This is useful for ensuring consistency and avoiding issues with different representations of the same name.

const namehash = require('eth-ens-namehash');
const normalized = namehash.normalize('example.eth');
console.log(normalized);

Other packages similar to eth-ens-namehash

Keywords

Ethereum

FAQs

Package last updated on 27 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.