ConsenSys/ens-namehash-py

Name: ens-namehash-py

Owner: ConsenSys

Description: A python implementation of the namehash algorithm from EIP137

Created: 2016-11-24 14:49:15.0

Updated: 2016-11-24 17:01:15.0

Pushed: 2016-11-24 16:39:50.0

Homepage: null

Size: 5

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

ENS Namehash

This package is an implementation of the namehash algorithm from EIP137.

Quickstart

Install the package:

p install ens-namehash

Hash some names!

from namehash import namehash
namehash('')
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
namehash('eth')
b'\x93\xcd\xebp\x8buE\xdcf\x8e\xb9(\x01v\x16\x9d\x1c3\xcf\xd8\xedo\x04i\n\x0b\xcc\x88\xa9?\xc4\xae'
namehash('foo.eth')
b'\xde\x9b\t\xfd|_\x90\x1e#\xa3\xf1\x9f\xec\xc5H(\xe9\xc8HS\x98\x01\xe8e\x91\xbd\x98\x01\xb0\x19\xf8O'

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.