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

chore: use non-zero start and end blocks for proof generation #1336

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

0xmad
Copy link
Collaborator

@0xmad 0xmad commented Apr 1, 2024

Description

  • Update maci-contracts task
  • Update maci-cli task
  • Add indexed params for poll events
  • Change deploy config example maci public key

Additional Notes

Now you don't need to specify start and end blocks. By default start block is a first signup event block; end - last merge aq event block.

Related issue(s)

MACI rpgf feedback discussion

Confirmation

@0xmad 0xmad added the chore Chore tasks label Apr 1, 2024
@0xmad 0xmad self-assigned this Apr 1, 2024
Copy link

vercel bot commented Apr 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
maci-website ✅ Ready (Inspect) Visit Preview Apr 1, 2024 7:21pm

- [x] Update maci-contracts task
- [x] Update maci-cli task
- [x] Add indexed params for poll events
- [x] Change deploy config example maci public key
@0xmad 0xmad force-pushed the chore/deployment-blocks branch from 7f6f059 to 59887e7 Compare April 1, 2024 19:19
@0xmad 0xmad marked this pull request as ready for review April 1, 2024 19:33
@0xmad 0xmad requested a review from ctrlc03 April 1, 2024 19:33
@0xmad 0xmad enabled auto-merge April 1, 2024 20:44
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 stuff, thank you

@0xmad 0xmad merged commit da5ba64 into dev Apr 2, 2024
19 checks passed
@0xmad 0xmad deleted the chore/deployment-blocks branch April 2, 2024 09:28
@ctrlc03
Copy link
Collaborator

ctrlc03 commented Apr 2, 2024

@0xmad I think we missed something here, and surprised tests did not catch it. We should be counting the start block as the block where the MACI contract was deployed. This is because we add the first leaf to the state tree inside the constructor, so if we start fetching logs from either the first signup, or when the first poll is deployed, then we will have a mismatch here: https://github.com/privacy-scaling-explorations/maci/blob/dev/contracts/ts/genMaciState.ts#L362
will make a PR for it

@ctrlc03
Copy link
Collaborator

ctrlc03 commented Apr 2, 2024

@0xmad I think we missed something here, and surprised tests did not catch it. We should be counting the start block as the block where the MACI contract was deployed. This is because we add the first leaf to the state tree inside the constructor, so if we start fetching logs from either the first signup, or when the first poll is deployed, then we will have a mismatch here: https://github.com/privacy-scaling-explorations/maci/blob/dev/contracts/ts/genMaciState.ts#L362 will make a PR for it

nope actually what I just said is not true haha it's fine to fetch from the first signup or first poll deployment because anyways we are not emitting an event for the first leaf and replicating the same logic off chain - my bad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Chore tasks
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants