Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 386 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 386 Bytes

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();
  }
}