Skip to main content

Implementation of the namehash algorithm from EIP137

Project description

# ENS Namehash

This package is an implementation of the namehash algorithm from [EIP137](https://github.com/ethereum/EIPs/issues/137).

### Quickstart

Install the package:

`bash $ pip install ens-namehash `

Hash some names!

`python >>> 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' `

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ens-namehash, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size ens_namehash-1.0.0-py3-none-any.whl (3.5 kB) File type Wheel Python version 3.5 Upload date Hashes View
Filename, size ens-namehash-1.0.0.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page