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

feat(simulator): simulator allows noir to read pending commitments #926

Merged
merged 60 commits into from
Jul 12, 2023

Conversation

dbanks12
Copy link
Contributor

@dbanks12 dbanks12 commented Jun 29, 2023

Description

  1. ACIR simulator tracks pending notes and allows Noir contracts to "get" them
  2. Kernel rejects all transient reads for now (until read<>commitment matching logic is there)
  3. New test contract added along with ACIR simulator tests and e2e tests for pending commitments
  4. New type ReadRequestMembershipWitness added which is a normal membership witness with a "kernel hint"
    • may need more than a single hint in the future
  5. Temporary hack in Noir to force strict dependency and ordering between notifyCreatedNote and subsequent getNotes oracles

Closes tickets...

Followup tasks

Other Related Tickets

Checklist:

  • I have reviewed my diff in github, line by line.
  • Every change is related to the PR description.
  • I have linked this pull request to the issue(s) that it resolves.
  • There are no unexpected formatting changes, superfluous debug logs, or commented-out code.
  • The branch has been merged or rebased against the head of its merge target.
  • I'm happy for the PR to be merged at the reviewer's next convenience.

@dbanks12 dbanks12 marked this pull request as ready for review July 12, 2023 02:05
@dbanks12 dbanks12 self-assigned this Jul 12, 2023
@dbanks12 dbanks12 added T-feature-request Type: Adding a brand new feature (not to be confused with improving an existing feature). C-protocol-circuits Component: Protocol circuits (kernel & rollup) labels Jul 12, 2023
@dbanks12
Copy link
Contributor Author

I'm thinking latest CI failure may be somehow due to 68b0fd8

Copy link
Contributor

@jeanmon jeanmon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work overall. I have mostly feedback on comments.

@dbanks12 dbanks12 merged commit 322e9a6 into master Jul 12, 2023
@dbanks12 dbanks12 deleted the db/pending-notes-simulator branch July 12, 2023 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-protocol-circuits Component: Protocol circuits (kernel & rollup) T-feature-request Type: Adding a brand new feature (not to be confused with improving an existing feature).
Projects
None yet
3 participants