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

Add skyscraper #1

Merged
merged 3 commits into from
Feb 11, 2025
Merged

Add skyscraper #1

merged 3 commits into from
Feb 11, 2025

Conversation

mghazwi
Copy link
Contributor

@mghazwi mghazwi commented Feb 6, 2025

Add the skyscraper impl - width = 2 only for now.

src/hash.rs Outdated
@@ -20,13 +21,15 @@ pub fn permute(h: Hash, s: State) -> State {
match h {
Hash::Poseidon2 => poseidon2::permutation::permute(s),
Hash::Griffin => griffin::permutation::permute(s),
Hash::Skyscraper => skyscraper::permutation::permute_state(s),
Copy link
Collaborator

Choose a reason for hiding this comment

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

We probably shouldn't do this, as it's totally unsafe

Instead somehow make the State type, or maybe just its width to depend on the Hash enum somehow (probably a trait or something?)

Until we figure that out maybe just comment this out

@bkomuves bkomuves merged commit b453084 into master Feb 11, 2025
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.

2 participants