Skip to content

manosamy/eth-ens-namehash-ms

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forked from https://github.com/danfinlay/eth-ens-namehash, and made the following changes: ng s

  1. replaced idna-uts46 with idna-uts46-hx
  2. changed one line in eth-ens-namehash to downgrade ES6 stringinterpolation to ES5 string concatenation

Available on NPM

Refer to the source for full functional description:

Eth ENS Namehash CircleCI

Installation

npm install eth-ens-namehash-ms -S

Usage

var namehash = require('eth-ens-namehash-ms')
var hash = namehash.hash('foo.eth')
// '0xde9b09fd7c5f901e23a3f19fecc54828e9c848539801e86591bd9801b019f84f'

// Also supports normalizing strings to ENS compatibility:
var input = getUserInput()
var normalized = namehash.normalize(input)

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%