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

No SNARK restrictions for Group IDs #180

Merged
merged 1 commit into from
Nov 28, 2022
Merged

No SNARK restrictions for Group IDs #180

merged 1 commit into from
Nov 28, 2022

Conversation

cedoor
Copy link
Member

@cedoor cedoor commented Nov 28, 2022

Description

This PR makes it possible to create group IDs not limited to the SNARK scalar field. Previously, the check was used to be able to use group IDs as external nullifiers. With our new contracts, however, the external nullifier is automatically hashed to convert any value to a new one that can be used within the SNARK scalar field.

Related Issue

#179

Does this introduce a breaking change?

  • Yes
  • No

@cedoor cedoor changed the title Group IDs not limited to bn254 New Group IDs value Nov 28, 2022
@cedoor cedoor changed the title New Group IDs value New Group ID value Nov 28, 2022
@cedoor cedoor linked an issue Nov 28, 2022 that may be closed by this pull request
@cedoor cedoor added this to the Semaphore-protocol v3 milestone Nov 28, 2022
@cedoor cedoor added the refactoring ♻️ A code change that neither fixes a bug nor adds a feature label Nov 28, 2022
@cedoor cedoor self-assigned this Nov 28, 2022
@cedoor cedoor changed the title New Group ID value No SNARK restrictions for Group IDs Nov 28, 2022
@cedoor cedoor merged commit 27320f1 into dev Nov 28, 2022
@cedoor cedoor deleted the refactor/group-id branch November 28, 2022 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring ♻️ A code change that neither fixes a bug nor adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove scalar field check for groupId
1 participant