Skip to content
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

Move to hashlib for hashing #153

Closed
nielstron opened this issue Jan 22, 2023 · 2 comments
Closed

Move to hashlib for hashing #153

nielstron opened this issue Jan 22, 2023 · 2 comments

Comments

@nielstron
Copy link
Contributor

Is your feature request related to a problem? Please describe.
pycardano currently uses NaCL for its hashing primitives. This is usually a large library, that is also not pure python and often causes long builds during installation.

Describe the solution you'd like
The python standard library hashlib supports sha256 etc. It would be nice if they can be used by default.

Describe alternatives you've considered
None

Additional context
I want to make development on Cardano as accessible as possible and a short and easily installable toolchain is part of that.

@cffls
Copy link
Collaborator

cffls commented Jan 28, 2023

We use NaCL also for signing&verification on curve ED25519, such as this example here. Do you have some alternative libraries in mind that can do both signing and hashing? I can look into them.

@nielstron nielstron changed the title Move to hashlib for hashinf Move to hashlib for hashing Jan 29, 2023
@nielstron
Copy link
Contributor Author

I realized that NaCl is used for signing too... Will check if there are lightweight alternatives :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants