Skip to content

chore: align AVM witgen's limits on number of side effects with AVM simulator. Witgen supports phases and rollbacks.#10329

Merged
IlyasRidhuan merged 7 commits into
ir/11-28-feat_enqueued_call_side_effect_tracefrom
db/side-effect-limits
Dec 3, 2024
Merged

chore: align AVM witgen's limits on number of side effects with AVM simulator. Witgen supports phases and rollbacks.#10329
IlyasRidhuan merged 7 commits into
ir/11-28-feat_enqueued_call_side_effect_tracefrom
db/side-effect-limits

Conversation

@dbanks12

@dbanks12 dbanks12 commented Nov 30, 2024

Copy link
Copy Markdown
Contributor
  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 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 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
@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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants