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

Anonymous Components for Sha256 hashers #1187

Conversation

0xjei
Copy link
Member

@0xjei 0xjei commented Feb 12, 2024

Description

This PR makes it possible to remove Sha256Hashers variant templates (e.g., Sha256Hasher4) by instantiating the Sha256Hasher() template directly in the code. This reduces the number of lines of code and makes it easier to read.

Additional Notes

  • The PoseidonHash template has been renamed PoseidonHasher to follow the other hashers template name convention.
  • The templates related to hashing (PoseidonHasher, Sha256Hasher and MessageHasher) have been grouped under the hashers.circom file.

Related issue(s)

See privacy-scaling-explorations/zk-kit#131

Confirmation

Copy link
Collaborator

@ctrlc03 ctrlc03 left a comment

Choose a reason for hiding this comment

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

Great work 🥇

@ctrlc03 ctrlc03 merged commit 2d647e7 into privacy-scaling-explorations:refactor/circom-circuits Feb 12, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants