Skip to content

Solidity Implementation of the ENS namehash algorithm.

License

Notifications You must be signed in to change notification settings

JonahGroendal/ens-namehash

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

No packages published