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

Member Removal and Group Construction Potential Conflict #933

Closed
ahache opened this issue Dec 21, 2024 · 0 comments
Closed

Member Removal and Group Construction Potential Conflict #933

ahache opened this issue Dec 21, 2024 · 0 comments

Comments

@ahache
Copy link

ahache commented Dec 21, 2024

Summary

The remove operation updates an identity commitment to 0 on chain. The Group class prevents constructing or adding with any 0 identity commitments. As far as I can tell, this makes recreating a group with 0s (removals) in memory not possible using the Group class.

Trying to construct a group without the 0 entries gives a mismatch between the on-chain root and the computed root, which is expected but it prevents any further update or remove operations.

Possible Solution

Testing a custom Group class that allows for adding 0s, I was able to get a root match.

I'm not sure if there's an important reason for preventing 0 values in the Group class or if I'm missing a more obvious solution but figured I'd check anyway.

Context

I am using contracts and a subgraph that very closely follows the provided source and when querying the members of a group I'm getting all identity commitments and the 0 values from removed members.

@ahache ahache closed this as not planned Won't fix, can't repro, duplicate, stale Dec 22, 2024
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

No branches or pull requests

1 participant