Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Poseidon Support for k256 Hash To Curve #1049

Open
shreyas-londhe opened this issue May 21, 2024 · 1 comment
Open

Poseidon Support for k256 Hash To Curve #1049

shreyas-londhe opened this issue May 21, 2024 · 1 comment

Comments

@shreyas-londhe
Copy link

Hi, we have a requirement to use the Poseidon hash function instead of the sha256 hash function in the hash2curve for the curve k256. I'm more than happy to implement it and make a PR with a little bit of help. Please let me know if this would be a good addition and where I can start from.

@tarcieri
Copy link
Member

We don't currently have an implementation of Poseidon, although there was some discussion of adding one (and/or Poseidon2) here: RustCrypto/hashes#1

k256 is designed so you can implement algorithms like Poseidon in downstream crates. It should be possible to implement it in such a way that it's generic over elliptic curves as well. As such, it probably shouldn't go in k256 itself.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants