Skip to content

JonahGroendal/ens-namehash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ens-namehash

Solidity Implementation of the ENS namehash algorithm.

Install

npm install JonahGroendal/ens-namehash

Usage

pragma solidity ^0.5.1;

import 'ens-namehash/contracts/ENSNamehash.sol';

contract A {
  using ENSNamehash for bytes;
  
  function getNamehash(bytes memory name) public pure returns (bytes32) {
    return name.namehash();
  }
}

About

Solidity Implementation of the ENS namehash algorithm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors