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

refactor: optimize public call stack item hashing #7330

Merged
merged 3 commits into from
Jul 5, 2024

Conversation

LHerskind
Copy link
Contributor

@LHerskind LHerskind commented Jul 3, 2024

Fixes #7092 for public, very similar to #7285.

Introduces a compressed version of the public_call_stack_item that is what we will be hashing instead of the full inputs with most values populated by zeros.

Notable savings is the SchnorrAccount entrypoint which is reduces all the way to 88K 👀

Copy link
Contributor Author

LHerskind commented Jul 3, 2024

Copy link
Contributor

github-actions bot commented Jul 4, 2024

Changes to circuit sizes

Generated at commit: 6fc00dff29e87ff93cefc7718c9f20385ae2eeaa, compared to commit: 586c0b019d0c2c462188f03c9c31d25a46e35eb6

🧾 Summary (100% most significant diffs)

Program ACIR opcodes (+/-) % Circuit size (+/-) %
public_kernel_setup -645 ✅ -0.35% -147,288 ✅ -10.04%
public_kernel_teardown -1,642 ✅ -0.68% -279,863 ✅ -16.82%
public_kernel_app_logic -1,640 ✅ -0.68% -279,861 ✅ -16.83%

Full diff report 👇
Program ACIR opcodes (+/-) % Circuit size (+/-) %
public_kernel_setup 182,710 (-645) -0.35% 1,319,393 (-147,288) -10.04%
public_kernel_teardown 241,237 (-1,642) -0.68% 1,383,582 (-279,863) -16.82%
public_kernel_app_logic 241,041 (-1,640) -0.68% 1,383,344 (-279,861) -16.83%

@AztecBot
Copy link
Collaborator

AztecBot commented Jul 4, 2024

Benchmark results

Metrics with a significant change:

  • app_circuit_witness_generation_time_in_ms (MultiCallEntrypoint:entrypoint): 651 (-31%)
  • app_circuit_witness_generation_time_in_ms (GasToken:deploy): 553 (-20%)
  • app_circuit_witness_generation_time_in_ms (SchnorrAccount:entrypoint): 820 (-35%)
  • app_circuit_witness_generation_time_in_ms (FPC:fee_entrypoint_public): 97.1 (-59%)
  • protocol_circuit_simulation_time_in_ms (public-kernel-setup): 443 (-18%)
  • protocol_circuit_simulation_time_in_ms (public-kernel-app-logic): 424 (-16%)
  • protocol_circuit_simulation_time_in_ms (public-kernel-teardown): 387 (-22%)
  • avm_simulation_time_ms (Token:mint_public): 54.3 (-89%)
  • avm_simulation_time_ms (Token:assert_minter_and_mint): 129 (+132%)
  • avm_simulation_time_ms (Token:_increase_public_balance): 14.8 (-73%)
  • avm_simulation_time_ms (FPC:pay_refund_with_shielded_rebate): 152 (+36%)
  • app_circuit_proving_time_in_ms (SchnorrAccount:entrypoint): 4,722 (-83%)
  • app_circuit_proving_time_in_ms (FPC:fee_entrypoint_public): 1,638 (-85%)
  • app_circuit_size_in_gates (SchnorrAccount:entrypoint): 131,072 (-87%)
  • app_circuit_size_in_gates (FPC:fee_entrypoint_public): 65,536 (-87%)
Detailed results

All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.

This benchmark source data is available in JSON format on S3 here.

Proof generation

Each column represents the number of threads used in proof generation.

Metric 1 threads 4 threads 16 threads 32 threads 64 threads
proof_construction_time_sha256_ms 5,719 1,545 708 732 (-3%) 779 (+1%)
proof_construction_time_sha256_30_ms 11,852 (+1%) 3,158 1,412 1,437 1,472
proof_construction_time_sha256_100_ms 43,772 11,763 5,440 5,396 5,541 (+3%)
proof_construction_time_poseidon_hash_ms 78.0 34.0 34.0 58.0 (-2%) 88.0 (+2%)
proof_construction_time_poseidon_hash_30_ms 1,515 415 200 (+1%) 229 (+4%) 264
proof_construction_time_poseidon_hash_100_ms 5,732 1,562 726 (+1%) 768 (-2%) 787

L2 block published to L1

Each column represents the number of txs on an L2 block published to L1.

Metric 4 txs 8 txs 16 txs
l1_rollup_calldata_size_in_bytes 1,412 1,412 1,412
l1_rollup_calldata_gas 9,464 9,466 9,464
l1_rollup_execution_gas 611,203 611,356 611,505
l2_block_processing_time_in_ms 760 1,411 2,758 (+2%)
l2_block_building_time_in_ms 18,902 (-10%) 40,660 (-2%) 73,907 (-9%)
l2_block_rollup_simulation_time_in_ms 18,902 (-10%) 40,660 (-2%) 73,907 (-9%)
l2_block_public_tx_process_time_in_ms 16,125 (-10%) 37,679 (-2%) 70,960 (-9%)

L2 chain processing

Each column represents the number of blocks on the L2 chain where each block has 8 txs.

Metric 3 blocks 5 blocks
node_history_sync_time_in_ms 7,032 (+1%) 9,807 (-1%)
node_database_size_in_bytes 12,447,824 16,175,184
pxe_database_size_in_bytes 16,254 26,813

Circuits stats

Stats on running time and I/O sizes collected for every kernel circuit run across all benchmarks.

Circuit simulation_time_in_ms witness_generation_time_in_ms proving_time_in_ms input_size_in_bytes output_size_in_bytes proof_size_in_bytes num_public_inputs size_in_gates
private-kernel-init 110 (+1%) 402 (+2%) 14,635 (+12%) 19,990 55,022 74,432 2,259 524,288
private-kernel-inner 222 719 (-5%) 28,817 (+1%) 82,090 55,022 74,432 2,259 1,048,576
private-kernel-tail 1,052 (-1%) 2,582 (+3%) 55,839 (-8%) 62,345 62,057 14,912 399 2,097,152
base-parity 6.21 (+1%) 1,364 (-11%) 2,620 (-1%) 128 64.0 2,208 2.00 131,072
root-parity 49.2 (-1%) 66.5 (-2%) 41,062 27,100 64.0 2,720 18.0 2,097,152
base-rollup 6,226 (-5%) 4,962 91,744 (-3%) 170,330 728 3,648 47.0 4,194,304
root-rollup 110 78.9 (-6%) 24,099 (+1%) 25,253 620 3,456 41.0 1,048,576
public-kernel-setup ⚠️ 443 (-18%) 2,434 (+1%) 42,423 (+2%) 102,121 80,278 106,912 3,274 2,097,152
public-kernel-app-logic ⚠️ 424 (-16%) 3,383 (+1%) 43,189 (-1%) 102,121 80,278 106,912 3,274 2,097,152
public-kernel-tail 1,188 (+4%) 27,540 (+1%) 190,960 399,014 10,014 14,912 399 8,388,608
private-kernel-reset-small 291 1,344 (+9%) 28,169 (-10%) 79,209 55,022 74,432 2,259 1,048,576
public-kernel-teardown ⚠️ 387 (-22%) 3,333 (-3%) 42,967 (-7%) 102,121 80,278 106,912 3,274 2,097,152
merge-rollup 29.3 N/A N/A 16,486 728 N/A N/A N/A
private-kernel-tail-to-public N/A 8,576 (+1%) 57,775 (-4%) N/A N/A 106,912 3,274 2,097,152

Stats on running time collected for app circuits

Function input_size_in_bytes output_size_in_bytes witness_generation_time_in_ms proof_size_in_bytes proving_time_in_ms size_in_gates num_public_inputs
ContractClassRegisterer:register 1,344 9,364 398 (+1%) N/A N/A N/A N/A
ContractInstanceDeployer:deploy 1,408 9,364 24.7 (+1%) N/A N/A N/A N/A
MultiCallEntrypoint:entrypoint 1,920 9,364 ⚠️ 651 (-31%) N/A N/A N/A N/A
GasToken:deploy 1,376 9,364 ⚠️ 553 (-20%) N/A N/A N/A N/A
SchnorrAccount:constructor 1,312 9,364 475 N/A N/A N/A N/A
SchnorrAccount:entrypoint 2,304 9,364 ⚠️ 820 (-35%) 16,000 ⚠️ 4,722 (-83%) ⚠️ 131,072 (-87%) 433
Token:privately_mint_private_note 1,280 9,364 537 (-11%) N/A N/A N/A N/A
FPC:fee_entrypoint_public 1,344 9,364 ⚠️ 97.1 (-59%) 16,000 ⚠️ 1,638 (-85%) ⚠️ 65,536 (-87%) 433
Token:transfer 1,312 9,364 1,624 (-4%) 16,000 11,423 (-10%) 524,288 433
AuthRegistry:set_authorized (avm) 19,226 N/A N/A 91,264 1,274 (-7%) N/A N/A
FPC:prepare_fee (avm) 26,668 N/A N/A 91,328 2,816 (+1%) N/A N/A
Token:transfer_public (avm) 42,918 N/A N/A 91,328 3,854 (-1%) N/A N/A
AuthRegistry:consume (avm) 33,104 N/A N/A 91,264 2,703 (-3%) N/A N/A
FPC:pay_refund (avm) 36,833 N/A N/A 91,296 24,152 (+3%) N/A N/A
Benchmarking:create_note 1,344 9,364 464 N/A N/A N/A N/A
SchnorrAccount:verify_private_authwit 1,280 9,364 41.1 N/A N/A N/A N/A
Token:unshield 1,376 9,364 1,308 (-5%) N/A N/A N/A N/A
FPC:fee_entrypoint_private 1,376 9,364 1,701 (-8%) N/A N/A N/A N/A

AVM Simulation

Time to simulate various public functions in the AVM.

Function time_ms bytecode_size_in_bytes
GasToken:_increase_public_balance 71.1 13,790
GasToken:set_portal 14.5 (-12%) 3,339
Token:constructor 90.6 (-1%) 23,692
FPC:constructor 64.1 (+6%) 13,592
GasToken:mint_public 53.2 (+6%) 10,158
Token:mint_public ⚠️ 54.3 (-89%) 19,034
Token:assert_minter_and_mint ⚠️ 129 (+132%) 12,925
AuthRegistry:set_authorized 27.7 (-11%) 7,812
FPC:prepare_fee 101 (-9%) 15,062
Token:transfer_public 34.3 (-14%) 31,218
FPC:pay_refund 131 (-3%) 25,260
Benchmarking:increment_balance 1,984 (-9%) 15,267
Token:_increase_public_balance ⚠️ 14.8 (-73%) 15,006
FPC:pay_refund_with_shielded_rebate ⚠️ 152 (+36%) 26,347

Public DB Access

Time to access various public DBs.

Function time_ms
get-nullifier-index 0.155

Tree insertion stats

The duration to insert a fixed batch of leaves into each tree type.

Metric 1 leaves 16 leaves 64 leaves 128 leaves 256 leaves 512 leaves 1024 leaves
batch_insert_into_append_only_tree_16_depth_ms 10.4 16.9 (+1%) N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_16_depth_hash_count 16.8 31.7 N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_16_depth_hash_ms 0.602 0.519 (+1%) N/A N/A N/A N/A N/A
batch_insert_into_append_only_tree_32_depth_ms N/A N/A 48.3 77.2 (+1%) 132 245 479 (+2%)
batch_insert_into_append_only_tree_32_depth_hash_count N/A N/A 95.9 159 287 543 1,055
batch_insert_into_append_only_tree_32_depth_hash_ms N/A N/A 0.493 0.474 (+1%) 0.453 0.444 0.446 (+1%)
batch_insert_into_indexed_tree_20_depth_ms N/A N/A 60.0 (+1%) 112 184 (+1%) 354 704 (+1%)
batch_insert_into_indexed_tree_20_depth_hash_count N/A N/A 109 207 355 691 1,363
batch_insert_into_indexed_tree_20_depth_hash_ms N/A N/A 0.506 (+1%) 0.502 0.487 0.478 0.481 (+1%)
batch_insert_into_indexed_tree_40_depth_ms N/A N/A 73.0 N/A N/A N/A N/A
batch_insert_into_indexed_tree_40_depth_hash_count N/A N/A 133 N/A N/A N/A N/A
batch_insert_into_indexed_tree_40_depth_hash_ms N/A N/A 0.519 N/A N/A N/A N/A

Miscellaneous

Transaction sizes based on how many contract classes are registered in the tx.

Metric 0 registered classes 1 registered classes
tx_size_in_bytes 74,057 667,841

Transaction size based on fee payment method

| Metric | |
| - | |

@LHerskind LHerskind force-pushed the lh/private-call-stack-item-hash branch 3 times, most recently from d6f6ec0 to 58566d7 Compare July 4, 2024 14:39
@LHerskind LHerskind force-pushed the lh/public-call-stack-item-hash branch from 411f896 to b790ce8 Compare July 4, 2024 14:39
@LHerskind LHerskind marked this pull request as ready for review July 4, 2024 15:15
Copy link
Contributor

@benesjan benesjan left a comment

Choose a reason for hiding this comment

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

Looks good. Would just add a comment what is the compressed item and why we need it.

use crate::traits::{Hash, Empty, Serialize, Deserialize};
use crate::utils::reader::Reader;

struct PublicCallStackItemCompressed {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please add here a comment describing wtf is this and why we need it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will add 🫡

@@ -554,7 +554,7 @@ pub fn validate_call_against_request(public_call: PublicCallData, request: CallR
let call_stack_item = public_call.call_stack_item;

assert(
request.hash == call_stack_item.hash(), "calculated public_kernel_inputs_hash does not match provided public_kernel_inputs_hash at the top of the call stack"
request.hash == call_stack_item.get_compressed().hash(), "calculated public_kernel_inputs_hash does not match provided public_kernel_inputs_hash at the top of the call stack"
Copy link
Contributor

Choose a reason for hiding this comment

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

If my understanding is correct, I think this is exploitable. Imagine a public => public call. The AVM, when fullfilling the CALL opcode in the parent, asks the prover to provide a call stack item for the result of the call.

The prover, then spawns a child AVM, runs the function, and provides a call stack item.

Now the parent AVM exposes in its public inputs the hash of the nested call stack item, extracts the return values from the nested call stack item and writes the return values in the memory of the parent public function.

A malicious prover can, if the kernel does not check the return values when comparing the parent_function_avm_public_inputs.call_requests.hash vs the child_function_avm_public_inputs, provide to the parent AVM fake return values that will never be checked by the kernel to be equal to the ones actually returned by the child function. The parent function will think the child function returned something that wasn't returned

I think, the check request_hash <=> actual hash should check:

  • Intent of the caller (target function, target selector, call context, arguments, etc)
  • Any data exposed back to the caller that could change its behaviour (return values, revert code, gas left, etc)

In the case of private => public, since no data is exposed back to the caller, then only the intent needs to be checked, that is achieved in master, by this check:

    let item = if self.is_execution_request {
            self.as_execution_request()
        } else {
            self
        };

In the case of public => public, it's what I expressed above, both the intent and any data from the result that changes behavior of the caller

Copy link
Contributor

Choose a reason for hiding this comment

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

Ooops. It's me that told Lasse that we didn't have to include the return_args hash. Because I think the public call request will be for the private functions only. It’s now being used between public calls because AVM can’t simulate the entire call request at once yet. But you are right it's an exploit at the moment and I guess we can include it now and remove it later!

Copy link
Contributor

Choose a reason for hiding this comment

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

It shouldn't be too complicated i think, It's just adding a few fields to the PublicCallStackItemCompressed struct and adding to it the logic of is_execution_request to it (maybe we could call it is_request_from_private?).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will throw them back in, should be fairly straight forward with the struct in place.

So additions would be:

  • returns_hash
  • revert code
  • gas left (all 4)

Base automatically changed from lh/private-call-stack-item-hash to master July 5, 2024 08:30
@LHerskind LHerskind force-pushed the lh/public-call-stack-item-hash branch from 02f62f0 to a77b618 Compare July 5, 2024 09:39
Copy link
Contributor

@sirasistant sirasistant left a comment

Choose a reason for hiding this comment

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

Thanks!

@LHerskind LHerskind merged commit 4a5093c into master Jul 5, 2024
91 checks passed
@LHerskind LHerskind deleted the lh/public-call-stack-item-hash branch July 5, 2024 10:24
TomAFrench added a commit that referenced this pull request Jul 8, 2024
* master: (176 commits)
  refactor: counters (#7342)
  chore: notify Noir team on changes to the stdlib (#7387)
  chore(bb): do not instantiate Relation (#7389)
  chore(avm): avoid including flavor where possible (#7361)
  chore(avm): better log_derivative_inverse_round (#7360)
  chore(avm): smaller prover (#7359)
  chore(avm): smaller transcript (#7357)
  feat: Sync from noir (#7352)
  feat: VK tree (#6914)
  chore(docs): Update token tutorial (#7241)
  chore: sync external contributions (#6984)
  fix: privacy leak in private refund (#7358)
  fix: included argshash computation in public call_interfaces and cleanup (#7354)
  docs: making private refunds smooth-brain friendly (#7343)
  refactor: optimize public call stack item hashing (#7330)
  fix: Allow importing notes from other contracts and inject them in the macros (#7349)
  refactor: Optimize private call stack item hash for gate count (#7285)
  git subrepo push --branch=master noir-projects/aztec-nr
  git_subrepo.sh: Fix parent in .gitrepo file. [skip ci]
  chore: replace relative paths to noir-protocol-circuits
  ...
rahul-kothari pushed a commit that referenced this pull request Jul 9, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>aztec-package: 0.46.0</summary>

##
[0.46.0](aztec-package-v0.45.1...aztec-package-v0.46.0)
(2024-07-09)


### Features

* VK tree
([#6914](#6914))
([8631237](8631237))
</details>

<details><summary>barretenberg.js: 0.46.0</summary>

##
[0.46.0](barretenberg.js-v0.45.1...barretenberg.js-v0.46.0)
(2024-07-09)


### Miscellaneous

* **barretenberg.js:** Synchronize aztec-packages versions
</details>

<details><summary>aztec-packages: 0.46.0</summary>

##
[0.46.0](aztec-packages-v0.45.1...aztec-packages-v0.46.0)
(2024-07-09)


### ⚠ BREAKING CHANGES

* constant inputs for blackbox
([#7222](#7222))

### Features

* Add more slice methods to the stdlib
(noir-lang/noir#5424)
([6137a10](6137a10))
* Constant inputs for blackbox
([#7222](#7222))
([9f9ded2](9f9ded2))
* Detect subgraphs that are completely independent from inputs or
outputs (noir-lang/noir#5402)
([c7b1ae4](c7b1ae4))
* Lsp "go to definition" for modules
(noir-lang/noir#5406)
([c7b1ae4](c7b1ae4))
* Lsp rename/find-all-references for traits
(noir-lang/noir#5409)
([c7b1ae4](c7b1ae4))
* Lsp rename/find-all-references for type aliases
(noir-lang/noir#5414)
([6137a10](6137a10))
* Sync from aztec-packages (noir-lang/noir#5408)
([c7b1ae4](c7b1ae4))
* Sync from aztec-packages (noir-lang/noir#5432)
([6137a10](6137a10))
* TXE docs and usability
([#7305](#7305))
([6b2a351](6b2a351))
* Unquote multiple items from annotations
(noir-lang/noir#5441)
([6137a10](6137a10))
* VK tree
([#6914](#6914))
([8631237](8631237))


### Bug Fixes

* Allow importing notes from other contracts and inject them in the
macros
([#7349](#7349))
([586c0b0](586c0b0))
* Change panic to error in interpreter
(noir-lang/noir#5446)
([6137a10](6137a10))
* Complete call stacks with no_predicates
(noir-lang/noir#5418)
([c7b1ae4](c7b1ae4))
* Correct range for overlfowing/underflowing integer assignment
(noir-lang/noir#5416)
([c7b1ae4](c7b1ae4))
* Included argshash computation in public call_interfaces and cleanup
([#7354](#7354))
([13e9b94](13e9b94))
* Lsp find struct reference in return locations and paths
(noir-lang/noir#5404)
([c7b1ae4](c7b1ae4))
* Lsp struct rename/reference difference
(noir-lang/noir#5411)
([6137a10](6137a10))
* Privacy leak in private refund
([#7358](#7358))
([e05f6f0](e05f6f0)),
closes
[#7321](#7321)


### Miscellaneous

* Add remaining slice methods to the interpreter
(noir-lang/noir#5422)
([c7b1ae4](c7b1ae4))
* Add test and benchmarks for poseidon2
(noir-lang/noir#5386)
([c7b1ae4](c7b1ae4))
* **avm:** Avoid including flavor where possible
([#7361](#7361))
([dbdffd6](dbdffd6))
* **avm:** Better log_derivative_inverse_round
([#7360](#7360))
([6329833](6329833))
* **avm:** Smaller prover
([#7359](#7359))
([7d8c833](7d8c833))
* **avm:** Smaller transcript
([#7357](#7357))
([3952a44](3952a44))
* **bb:** Do not instantiate Relation
([#7389](#7389))
([d9cbf4c](d9cbf4c))
* Counters
([#7342](#7342))
([819f370](819f370))
* **docs:** Fix link to docker
([#7395](#7395))
([ad4a401](ad4a401))
* **docs:** Update token tutorial
([#7241](#7241))
([0414eb5](0414eb5))
* Dummy workflow (noir-lang/noir#5438)
([6137a10](6137a10))
* Extracts refactoring of reading error payloads from
[#5403](#5403)
(noir-lang/noir#5413)
([6137a10](6137a10))
* Generate declaration files for VKs
([#7391](#7391))
([7c96636](7c96636))
* Merge `BarretenbergVerifierBackend` and `BarretenbergBackend`
(noir-lang/noir#5399)
([6137a10](6137a10))
* Move SSA checks to a new folder
(noir-lang/noir#5434)
([6137a10](6137a10))
* Notify Noir team on changes to the stdlib
([#7387](#7387))
([061aac3](061aac3))
* Optimize private call stack item hash for gate count
([#7285](#7285))
([783d9b6](783d9b6))
* Optimize public call stack item hashing
([#7330](#7330))
([4a5093c](4a5093c))
* Refactor logic around inlining `no_predicates` functions
(noir-lang/noir#5433)
([6137a10](6137a10))
* Replace relative paths to noir-protocol-circuits
([8510269](8510269))
* Replace relative paths to noir-protocol-circuits
([9eb8d1c](9eb8d1c))
* Sync external contributions
([#6984](#6984))
([a265b29](a265b29))


### Documentation

* Making private refunds smooth-brain friendly
([#7343](#7343))
([533c937](533c937))
* Update overview.md (fix link text)
([#7344](#7344))
([79e5856](79e5856))
</details>

<details><summary>barretenberg: 0.46.0</summary>

##
[0.46.0](barretenberg-v0.45.1...barretenberg-v0.46.0)
(2024-07-09)


### ⚠ BREAKING CHANGES

* constant inputs for blackbox
([#7222](#7222))

### Features

* Constant inputs for blackbox
([#7222](#7222))
([9f9ded2](9f9ded2))


### Miscellaneous

* **avm:** Avoid including flavor where possible
([#7361](#7361))
([dbdffd6](dbdffd6))
* **avm:** Better log_derivative_inverse_round
([#7360](#7360))
([6329833](6329833))
* **avm:** Smaller prover
([#7359](#7359))
([7d8c833](7d8c833))
* **avm:** Smaller transcript
([#7357](#7357))
([3952a44](3952a44))
* **bb:** Do not instantiate Relation
([#7389](#7389))
([d9cbf4c](d9cbf4c))
* Counters
([#7342](#7342))
([819f370](819f370))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
AztecBot added a commit to AztecProtocol/barretenberg that referenced this pull request Jul 10, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>aztec-package: 0.46.0</summary>

##
[0.46.0](AztecProtocol/aztec-packages@aztec-package-v0.45.1...aztec-package-v0.46.0)
(2024-07-09)


### Features

* VK tree
([#6914](AztecProtocol/aztec-packages#6914))
([8631237](AztecProtocol/aztec-packages@8631237))
</details>

<details><summary>barretenberg.js: 0.46.0</summary>

##
[0.46.0](AztecProtocol/aztec-packages@barretenberg.js-v0.45.1...barretenberg.js-v0.46.0)
(2024-07-09)


### Miscellaneous

* **barretenberg.js:** Synchronize aztec-packages versions
</details>

<details><summary>aztec-packages: 0.46.0</summary>

##
[0.46.0](AztecProtocol/aztec-packages@aztec-packages-v0.45.1...aztec-packages-v0.46.0)
(2024-07-09)


### ⚠ BREAKING CHANGES

* constant inputs for blackbox
([#7222](AztecProtocol/aztec-packages#7222))

### Features

* Add more slice methods to the stdlib
(noir-lang/noir#5424)
([6137a10](AztecProtocol/aztec-packages@6137a10))
* Constant inputs for blackbox
([#7222](AztecProtocol/aztec-packages#7222))
([9f9ded2](AztecProtocol/aztec-packages@9f9ded2))
* Detect subgraphs that are completely independent from inputs or
outputs (noir-lang/noir#5402)
([c7b1ae4](AztecProtocol/aztec-packages@c7b1ae4))
* Lsp "go to definition" for modules
(noir-lang/noir#5406)
([c7b1ae4](AztecProtocol/aztec-packages@c7b1ae4))
* Lsp rename/find-all-references for traits
(noir-lang/noir#5409)
([c7b1ae4](AztecProtocol/aztec-packages@c7b1ae4))
* Lsp rename/find-all-references for type aliases
(noir-lang/noir#5414)
([6137a10](AztecProtocol/aztec-packages@6137a10))
* Sync from aztec-packages (noir-lang/noir#5408)
([c7b1ae4](AztecProtocol/aztec-packages@c7b1ae4))
* Sync from aztec-packages (noir-lang/noir#5432)
([6137a10](AztecProtocol/aztec-packages@6137a10))
* TXE docs and usability
([#7305](AztecProtocol/aztec-packages#7305))
([6b2a351](AztecProtocol/aztec-packages@6b2a351))
* Unquote multiple items from annotations
(noir-lang/noir#5441)
([6137a10](AztecProtocol/aztec-packages@6137a10))
* VK tree
([#6914](AztecProtocol/aztec-packages#6914))
([8631237](AztecProtocol/aztec-packages@8631237))


### Bug Fixes

* Allow importing notes from other contracts and inject them in the
macros
([#7349](AztecProtocol/aztec-packages#7349))
([586c0b0](AztecProtocol/aztec-packages@586c0b0))
* Change panic to error in interpreter
(noir-lang/noir#5446)
([6137a10](AztecProtocol/aztec-packages@6137a10))
* Complete call stacks with no_predicates
(noir-lang/noir#5418)
([c7b1ae4](AztecProtocol/aztec-packages@c7b1ae4))
* Correct range for overlfowing/underflowing integer assignment
(noir-lang/noir#5416)
([c7b1ae4](AztecProtocol/aztec-packages@c7b1ae4))
* Included argshash computation in public call_interfaces and cleanup
([#7354](AztecProtocol/aztec-packages#7354))
([13e9b94](AztecProtocol/aztec-packages@13e9b94))
* Lsp find struct reference in return locations and paths
(noir-lang/noir#5404)
([c7b1ae4](AztecProtocol/aztec-packages@c7b1ae4))
* Lsp struct rename/reference difference
(noir-lang/noir#5411)
([6137a10](AztecProtocol/aztec-packages@6137a10))
* Privacy leak in private refund
([#7358](AztecProtocol/aztec-packages#7358))
([e05f6f0](AztecProtocol/aztec-packages@e05f6f0)),
closes
[#7321](AztecProtocol/aztec-packages#7321)


### Miscellaneous

* Add remaining slice methods to the interpreter
(noir-lang/noir#5422)
([c7b1ae4](AztecProtocol/aztec-packages@c7b1ae4))
* Add test and benchmarks for poseidon2
(noir-lang/noir#5386)
([c7b1ae4](AztecProtocol/aztec-packages@c7b1ae4))
* **avm:** Avoid including flavor where possible
([#7361](AztecProtocol/aztec-packages#7361))
([dbdffd6](AztecProtocol/aztec-packages@dbdffd6))
* **avm:** Better log_derivative_inverse_round
([#7360](AztecProtocol/aztec-packages#7360))
([6329833](AztecProtocol/aztec-packages@6329833))
* **avm:** Smaller prover
([#7359](AztecProtocol/aztec-packages#7359))
([7d8c833](AztecProtocol/aztec-packages@7d8c833))
* **avm:** Smaller transcript
([#7357](AztecProtocol/aztec-packages#7357))
([3952a44](AztecProtocol/aztec-packages@3952a44))
* **bb:** Do not instantiate Relation
([#7389](AztecProtocol/aztec-packages#7389))
([d9cbf4c](AztecProtocol/aztec-packages@d9cbf4c))
* Counters
([#7342](AztecProtocol/aztec-packages#7342))
([819f370](AztecProtocol/aztec-packages@819f370))
* **docs:** Fix link to docker
([#7395](AztecProtocol/aztec-packages#7395))
([ad4a401](AztecProtocol/aztec-packages@ad4a401))
* **docs:** Update token tutorial
([#7241](AztecProtocol/aztec-packages#7241))
([0414eb5](AztecProtocol/aztec-packages@0414eb5))
* Dummy workflow (noir-lang/noir#5438)
([6137a10](AztecProtocol/aztec-packages@6137a10))
* Extracts refactoring of reading error payloads from
[#5403](AztecProtocol/aztec-packages#5403)
(noir-lang/noir#5413)
([6137a10](AztecProtocol/aztec-packages@6137a10))
* Generate declaration files for VKs
([#7391](AztecProtocol/aztec-packages#7391))
([7c96636](AztecProtocol/aztec-packages@7c96636))
* Merge `BarretenbergVerifierBackend` and `BarretenbergBackend`
(noir-lang/noir#5399)
([6137a10](AztecProtocol/aztec-packages@6137a10))
* Move SSA checks to a new folder
(noir-lang/noir#5434)
([6137a10](AztecProtocol/aztec-packages@6137a10))
* Notify Noir team on changes to the stdlib
([#7387](AztecProtocol/aztec-packages#7387))
([061aac3](AztecProtocol/aztec-packages@061aac3))
* Optimize private call stack item hash for gate count
([#7285](AztecProtocol/aztec-packages#7285))
([783d9b6](AztecProtocol/aztec-packages@783d9b6))
* Optimize public call stack item hashing
([#7330](AztecProtocol/aztec-packages#7330))
([4a5093c](AztecProtocol/aztec-packages@4a5093c))
* Refactor logic around inlining `no_predicates` functions
(noir-lang/noir#5433)
([6137a10](AztecProtocol/aztec-packages@6137a10))
* Replace relative paths to noir-protocol-circuits
([8510269](AztecProtocol/aztec-packages@8510269))
* Replace relative paths to noir-protocol-circuits
([9eb8d1c](AztecProtocol/aztec-packages@9eb8d1c))
* Sync external contributions
([#6984](AztecProtocol/aztec-packages#6984))
([a265b29](AztecProtocol/aztec-packages@a265b29))


### Documentation

* Making private refunds smooth-brain friendly
([#7343](AztecProtocol/aztec-packages#7343))
([533c937](AztecProtocol/aztec-packages@533c937))
* Update overview.md (fix link text)
([#7344](AztecProtocol/aztec-packages#7344))
([79e5856](AztecProtocol/aztec-packages@79e5856))
</details>

<details><summary>barretenberg: 0.46.0</summary>

##
[0.46.0](AztecProtocol/aztec-packages@barretenberg-v0.45.1...barretenberg-v0.46.0)
(2024-07-09)


### ⚠ BREAKING CHANGES

* constant inputs for blackbox
([#7222](AztecProtocol/aztec-packages#7222))

### Features

* Constant inputs for blackbox
([#7222](AztecProtocol/aztec-packages#7222))
([9f9ded2](AztecProtocol/aztec-packages@9f9ded2))


### Miscellaneous

* **avm:** Avoid including flavor where possible
([#7361](AztecProtocol/aztec-packages#7361))
([dbdffd6](AztecProtocol/aztec-packages@dbdffd6))
* **avm:** Better log_derivative_inverse_round
([#7360](AztecProtocol/aztec-packages#7360))
([6329833](AztecProtocol/aztec-packages@6329833))
* **avm:** Smaller prover
([#7359](AztecProtocol/aztec-packages#7359))
([7d8c833](AztecProtocol/aztec-packages@7d8c833))
* **avm:** Smaller transcript
([#7357](AztecProtocol/aztec-packages#7357))
([3952a44](AztecProtocol/aztec-packages@3952a44))
* **bb:** Do not instantiate Relation
([#7389](AztecProtocol/aztec-packages#7389))
([d9cbf4c](AztecProtocol/aztec-packages@d9cbf4c))
* Counters
([#7342](AztecProtocol/aztec-packages#7342))
([819f370](AztecProtocol/aztec-packages@819f370))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

Reduce constraint count of a function call
5 participants