Skip to content

Instantly share code, notes, and snippets.

@0xGabi
Last active September 5, 2019 20:56
Show Gist options
  • Save 0xGabi/e922ddd1c991e16c825f6b89aeb64db7 to your computer and use it in GitHub Desktop.
Save 0xGabi/e922ddd1c991e16c825f6b89aeb64db7 to your computer and use it in GitHub Desktop.
const namehash = require("eth-ens-namehash").hash;
const keccak256 = require("js-sha3").keccak_256;
const tldName = "open.aragonpm.eth";
const tldHash = namehash(tldName);
console.log(`Namehash: ${tldHash}`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment