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

fix: Black box func slice handling #2562

Merged
merged 5 commits into from
Sep 5, 2023
Merged

Conversation

vezenovm
Copy link
Contributor

@vezenovm vezenovm commented Sep 5, 2023

Description

Problem*

Resolves #2557
Resolves #2440

Summary*

When we set up a black box function we only care about the slice contents and we do not need the slice length. We were passing the slice structure of (length, slice contents) as is into call_black_box in generated_acir.rs. I have changed how we set up the inputs to simply not include the slice length before setting up a BlackBoxFuncCall so that we can fetch the inputs as we would expect from the function signature.

Documentation

  • This PR requires documentation updates when merged.

    • I will submit a noir-lang/docs PR.
    • I will request for and support Dev Rel's help in documenting this PR.

Additional Context

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

@vezenovm vezenovm changed the title fix: Black box func RecursiveAggregation slice handling [DO NOT MERGE] fix: Black box func slice handling Sep 5, 2023
@vezenovm vezenovm requested review from kevaundray, sirasistant and jfecher and removed request for kevaundray September 5, 2023 19:03
@vezenovm
Copy link
Contributor Author

vezenovm commented Sep 5, 2023

I have tested this against bb master in aztec-packages and got all passing tests including for double_verify_proof

@vezenovm vezenovm marked this pull request as ready for review September 5, 2023 19:08
@vezenovm vezenovm added this pull request to the merge queue Sep 5, 2023
Merged via the queue into master with commit c67cd7d Sep 5, 2023
13 checks passed
@vezenovm vezenovm deleted the mv/fix-dbl-verify-proof branch September 5, 2023 19:59
TomAFrench added a commit that referenced this pull request Sep 5, 2023
* master:
  feat(ssa): Replace values which have previously been constrained with simplified value (#2483)
  fix: Black box func slice handling (#2562)
TomAFrench added a commit that referenced this pull request Sep 5, 2023
* master:
  fix(aztec): fix compilation of `aztec_library.rs` (#2567)
  feat(ssa): Replace values which have previously been constrained with simplified value (#2483)
  fix: Black box func slice handling (#2562)
  chore: Temporarily disable `noir_wasm` test (#2566)
  fix: Make def collector ordering more deterministic (#2515)
  chore: refactor `constant_folding` pass (#2533)
  chore: Cleanup mem2reg pass (#2531)
  chore: Replace hashers of hashmaps in dfg with fxhashes (#2490)
  chore: remove duplicate span from FunctionReturnType (#2546)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants