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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ens-namehash-1.0.0.tar.gz
.
File metadata
- Download URL: ens-namehash-1.0.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82a9696f9b7def7a313c36c6e6449c11a071aa9fb40f9400dd07fb8825b6608a |
|
MD5 | 9390ba539082faa900d9d90add1f8424 |
|
BLAKE2b-256 | 24a4f27efa5746f86c0e9d7667d0b70a7ee526e6f1f3bb8ee437ae735b2c9274 |
File details
Details for the file ens_namehash-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: ens_namehash-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e7680aebce328b10e96b0f336089ce88c4701a8e43c73ae93d32c34341e9992 |
|
MD5 | d4c0568947a7bc7191545f187e214914 |
|
BLAKE2b-256 | c8e51b2312cb16447f3825aa462ed57735d16a6b5b0df89fe5e1b74289209fb5 |