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

Create Proof for user to update address index in SMT #9

Open
AnthonyMadia opened this issue Jan 30, 2023 · 0 comments
Open

Create Proof for user to update address index in SMT #9

AnthonyMadia opened this issue Jan 30, 2023 · 0 comments

Comments

@AnthonyMadia
Copy link
Owner

AnthonyMadia commented Jan 30, 2023

When a user registers by calling the api/register endpoint they should make a zk proof that would set the leaf at their address index to 1.

Only the from root and to root will be public.

A queue will have to be created to avoid users registering at the same time and having transactions be reverted.

Attester stores root and verifies proofs that update it.

(this issue will include initial set up for circuits including necessary javascript libraries etc.)

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