Skip to content

Conversation

@AztecBot
Copy link
Collaborator

@AztecBot AztecBot commented Sep 12, 2025

BEGIN_COMMIT_OVERRIDE
chore(avm): always print bulk bench metrics
chore: betas optimization - 2^d multiplications (#16963)
docs: Add migration notes for gas costs (#16925)
feat(avm)!: protocol contracts (#16949)
END_COMMIT_OVERRIDE

Copy link
Collaborator

@ludamad ludamad left a comment

Choose a reason for hiding this comment

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

🤖 Auto-approved

@AztecBot AztecBot enabled auto-merge September 12, 2025 17:02
@AztecBot
Copy link
Collaborator Author

🤖 Auto-merge enabled after 4 hours of inactivity. This PR will be merged automatically once all checks pass.

@AztecBot AztecBot added this pull request to the merge queue Sep 15, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 15, 2025
AztecBot and others added 3 commits September 15, 2025 13:05
With 16 cores for the avm trace (2^21), the time goes from ca. 80 ms to
37 ms.
For a trace of size 2^24, timing goes from 600 ms to 280ms.

Relevant issue
[#864](AztecProtocol/barretenberg#864)
@AztecBot AztecBot enabled auto-merge September 15, 2025 20:02
@AztecBot
Copy link
Collaborator Author

🤖 Auto-merge enabled after 4 hours of inactivity. This PR will be merged automatically once all checks pass.

@dbanks12 dbanks12 disabled auto-merge September 15, 2025 21:02
@AztecBot AztecBot enabled auto-merge September 15, 2025 21:02
@AztecBot
Copy link
Collaborator Author

🤖 Auto-merge enabled after 4 hours of inactivity. This PR will be merged automatically once all checks pass.

@AztecBot AztecBot added this pull request to the merge queue Sep 15, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 15, 2025
PR changes the approach for handling protocol contracts in the AVM.

Introduces a `ProtocolContractSetInterface` that manages the static (per
rollup deployment) set of protocol contract's derived addresses. The
current implementation of this set is as an indexed merkle tree -
although hopefully we are able to migrate to a simpler (non-indexed
tree) structure.

When retrieving the derived address for a protocol contract, we also
produce a merkle membership path that is checked against the L1 public
contracts tree root (currently unconstrained). This will eventually be
included in the public inputs of the AVM. There is a new corresponding
subtrace for the protocol contracts derived address retrieval

The map of canonical address to derived address is hinted via TS as part
of `AvmExecutionHints`
@fcarreiro fcarreiro added this pull request to the merge queue Sep 16, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 16, 2025
@dbanks12 dbanks12 added this pull request to the merge queue Sep 16, 2025
Merged via the queue into next with commit 6d20760 Sep 16, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants