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 hades permutation into poseidon lib #242

Merged
merged 1 commit into from
Jan 22, 2024
Merged

Conversation

moCello
Copy link
Member

@moCello moCello commented Jan 18, 2024

Resolves #240

Copy link
Member

@xevisalle xevisalle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -18,3 +18,6 @@ pub mod perm_uses;

/// Implementation for the Poseidon Sponge hash function
pub mod sponge;

/// Implementation of the Poseidon permutation based on the Hades strategy
pub mod hades;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is pub necessary?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is indeed debatable! For this PR I wanted to simply port everything from hades without doing a lot of changes and since the crate was public, I though it makes sense to make the hades module in our poseidon library public as well. I opened an issue to only expose two permutation functions (one normal and the gadget) and the hades WIDTH #243

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll merge this PR and we continue the discussion in #243

@moCello moCello merged commit 01614e0 into master Jan 22, 2024
7 checks passed
@moCello moCello deleted the mocello/240_hades branch January 22, 2024 16:30
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.

Move hades permutation in this crate
2 participants