You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am guessing it is due to usage of pysha3-1.0.2 rather than pysha3==0.3 (as I read in requirements.txt), but to get namehash to work properly I changed line 4 as follows:
from sha3 import keccak_256 as sha3_256
Not sure why sha3_256 and keccak_256 differ though
The text was updated successfully, but these errors were encountered:
I think that from python 3.6 the pysha3 versions are greater than 1.0.0, so, for example, i tried the examples of the Readme and found this:
File "test.py", line 1, in <module>
from namehash import namehash
File "/home/marcos/sandbox/venv/lib/python3.6/site-packages/namehash.py", line 24, in <module>
assert codecs.encode(sha3(b''), 'hex') == b'c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470' # noqa
AssertionError
I guess there was a breaking modification on the codecs package or sha3 implementation
I am guessing it is due to usage of pysha3-1.0.2 rather than pysha3==0.3 (as I read in requirements.txt), but to get namehash to work properly I changed line 4 as follows:
from sha3 import keccak_256 as sha3_256
Not sure why sha3_256 and keccak_256 differ though
The text was updated successfully, but these errors were encountered: