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

Custom nullifier hashes #138

Merged
merged 1 commit into from
Sep 19, 2022
Merged

Custom nullifier hashes #138

merged 1 commit into from
Sep 19, 2022

Conversation

cedoor
Copy link
Member

@cedoor cedoor commented Sep 19, 2022

Description

The way on-chain hash nullifiers are saved can change depending on the use case.

This PR moves the nullifier hashes from the SemaphoreCore.sol contract to the outside. The Semaphore.sol contract now contains a custom mechanism for saving the nullifier hashes of each group and uses the same Groups structure for all parameters used by groups.

This PR also fixes a bug in the Semaphore.sol contract, where the nullifierHash to be checked was not the correct one.

Related Issue

#137

Does this introduce a breaking change?

  • Yes
  • No

@cedoor cedoor added the feature 🚀 This is enhancing something existing or creating something new label Sep 19, 2022
@cedoor cedoor self-assigned this Sep 19, 2022
@cedoor cedoor merged commit 506fa0a into dev Sep 19, 2022
@cedoor cedoor deleted the feat/custom-nullifier-hashes branch September 19, 2022 14:49
@cedoor cedoor added the bug 🐛 Something isn't working label Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working feature 🚀 This is enhancing something existing or creating something new
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant