Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions namehash.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import codecs
import functools

from sha3 import sha3_256
from sha3 import keccak_256


def is_bytes(value):
Expand All @@ -17,7 +17,7 @@ def compose(*functions):


def sha3(value):
return sha3_256(value).digest()
return keccak_256(value).digest()


# ensure we have the *correct* sha3 installed (keccak)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pysha3==0.3
pysha3==1.0.2
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setup(
name='ens-namehash',
version="1.0.0",
version="1.0.1",
description="""Implementation of the namehash algorithm from EIP137""",
long_description=long_description,
author='Piper Merriam',
Expand All @@ -22,7 +22,7 @@
include_package_data=True,
py_modules=['namehash'],
install_requires=[
"pysha3>=0.3,<1.0",
"pysha3>=1.0.2,<2.0.0",
],
license="MIT",
zip_safe=False,
Expand Down