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: align AVM witgen's limits on number of side effects with AVM simulator. Witgen supports phases and rollbacks. #10329

Conversation

dbanks12
Copy link
Collaborator

@dbanks12 dbanks12 commented Nov 30, 2024

  1. Aligns side effect limits between TS and CPP
  2. Adds Noir test functions to spam side effects & adds that to proving test
  3. Adds support to witgen for tx phases
  4. Never expects a read hint for nullifier writes. Always just uses the write hint.
  5. Adds an argument to finalize and gen_trace to skip end-gas assertions (not sure this is the best way, but all the tests pass)
  6. renames TS hint vectors to all just be *_reads or *_writes instead of *read/update_requests etc.

Work needed in a follow-up PR:

  • separate the opcode switch-case & phase management/enqueued-calls into separate functions or even separate files in witgen

@dbanks12 dbanks12 added the e2e-all CI: Enables this CI job. label Nov 30, 2024
@dbanks12 dbanks12 changed the base branch from master to ir/11-28-feat_enqueued_call_side_effect_trace November 30, 2024 19:45
@dbanks12 dbanks12 changed the title [WIP] chore: align AVM witgen's limits on number of side effects with AVM simulator. Witgen supports phases and rollbacks. chore: align AVM witgen's limits on number of side effects with AVM simulator. Witgen supports phases and rollbacks. Dec 1, 2024
@dbanks12 dbanks12 added the e2e-prover-full CI: Enables this CI job. label Dec 1, 2024
@dbanks12 dbanks12 requested a review from IlyasRidhuan December 2, 2024 00:03
@IlyasRidhuan IlyasRidhuan merged commit 197fe73 into ir/11-28-feat_enqueued_call_side_effect_trace Dec 3, 2024
110 of 146 checks passed
@IlyasRidhuan IlyasRidhuan deleted the db/side-effect-limits branch December 3, 2024 15:05
IlyasRidhuan pushed a commit that referenced this pull request Dec 3, 2024
…imulator. Witgen supports phases and rollbacks. (#10329)

1. Aligns side effect limits between TS and CPP
2. Adds Noir test functions to spam side effects & adds that to proving
test
2. Adds support to witgen for tx phases
3. Never expects a read hint for nullifier writes. Always just uses the
write hint.
4. Adds an argument to finalize and `gen_trace` to skip end-gas
assertions (not sure this is the best way, but all the tests pass)
5. renames TS hint vectors to all just be `*_reads` or `*_writes`
instead of `*read/update_requests` etc.

Work needed in a follow-up PR:
- separate the opcode switch-case & phase management/enqueued-calls into
separate functions or even separate files in witgen
IlyasRidhuan pushed a commit that referenced this pull request Dec 9, 2024
…imulator. Witgen supports phases and rollbacks. (#10329)

1. Aligns side effect limits between TS and CPP
2. Adds Noir test functions to spam side effects & adds that to proving
test
2. Adds support to witgen for tx phases
3. Never expects a read hint for nullifier writes. Always just uses the
write hint.
4. Adds an argument to finalize and `gen_trace` to skip end-gas
assertions (not sure this is the best way, but all the tests pass)
5. renames TS hint vectors to all just be `*_reads` or `*_writes`
instead of `*read/update_requests` etc.

Work needed in a follow-up PR:
- separate the opcode switch-case & phase management/enqueued-calls into
separate functions or even separate files in witgen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e-all CI: Enables this CI job. e2e-prover-full CI: Enables this CI job.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants