Skip to content

fix: Black box func slice handling#2562

Merged
vezenovm merged 5 commits intomasterfrom
mv/fix-dbl-verify-proof
Sep 5, 2023
Merged

fix: Black box func slice handling#2562
vezenovm merged 5 commits intomasterfrom
mv/fix-dbl-verify-proof

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 jfecher, kevaundray and sirasistant 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 enabled auto-merge September 5, 2023 19:22
@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
@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

Development

Successfully merging this pull request may close these issues.

Inconsistent behaviour with .as_slice() Add abstraction to cleanly input arrays and slices to black box funcs

2 participants