-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace pysha3 with pycryptodomex #47
Conversation
pysha3 is not maintained anymore and it doesn't build correctly with Python 3.11 so replace it with pycryptodomex that is still maintained and working correctly with new python versions
4df0940
to
b133ae2
Compare
hashlib has had SHA3 built-in since 3.6, why not just stick to that? |
OpenTimestamps supported the pre-release version of SHA3 that Ethereum uses, not official SHA3.
There's so few ETH timestamps out there that I don't know if we really need to keep this support.
…On October 29, 2022 1:48:02 PM GMT+02:00, Stefano Rivera ***@***.***> wrote:
hashlib has had SHA3 built-in since 3.6, why not just stick to that?
--
Reply to this email directly or view it on GitHub:
#47 (comment)
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
A bit more on the × Running setup.py install for pysha3 did not run successfully.
In file included from Modules/_sha3/sha3module.c:20:
Modules/_sha3/backport.inc:78:10: fatal error: pystrhex.h: No such file or directory
78 | #include "pystrhex.h"
| ^~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
[end of output] From the Python 3.11 release notes:
Am seeing pysha3 requirement in a few places:
python-opentimestamps/setup.py Lines 72 to 73 in 5ac3b06
Could always make it an extra dependency that is not installed by default. And ETH timestamps would fail if not installed. OOC would this prevent validating existing ETH timestamps or just creating new ones? |
Also noting from https://github.com/tiran/pysha3:
|
Python 3.11 support depends on opentimestamps/python-opentimestamps#47
Python 3.11 support depends on opentimestamps/python-opentimestamps#47
More sideline encouragement for Python 3.11 compatibility whether through |
Thanks, I went ahead and merged this. Will do a new release shortly. |
pysha3 is not maintained anymore and it doesn't build correctly with Python 3.11 so replace it with pycryptodomex that is still maintained and working correctly with new python versions