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

feat: add Poseidon implementation over bn254 #1099

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

HSG88
Copy link
Contributor

@HSG88 HSG88 commented Apr 8, 2024

Description

This PR adds support for Poseidon hash over the scalar field of BN254, Poseidon has better performance compared to MiMC and is being used in multiple projects.

Fixes #207

Type of change

  • [*] New feature (non-breaking change which adds functionality)
  • [*] This change requires a documentation update

How has this been tested?

All unit tests have been made according to the code referenced in Poseidon paper page 20 footnote 16.

How has this been benchmarked?

The code hasn't been benchmarked yet.

Checklist:

  • [*] I have performed a self-review of my code
  • [*] I have commented my code, particularly in hard-to-understand areas
  • [*] New and existing unit tests pass locally with my changes

@ivokub
Copy link
Collaborator

ivokub commented Nov 27, 2024

@HSG88 - we have implemented Poseidon2 over all supported curves in #1300. Is there still need for the current PR? If not, then I would be inclined to close it for now.

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

Successfully merging this pull request may close these issues.

[std] Implement Poseidon hash
3 participants