Skip to content

chore: Accumulated backports to v4-next#22441

Merged
Thunkar merged 12 commits intov4-nextfrom
backport-to-v4-next-staging
Apr 9, 2026
Merged

chore: Accumulated backports to v4-next#22441
Thunkar merged 12 commits intov4-nextfrom
backport-to-v4-next-staging

Conversation

@AztecBot
Copy link
Copy Markdown
Collaborator

@AztecBot AztecBot commented Apr 9, 2026

BEGIN_COMMIT_OVERRIDE
cherry-pick: fix(pxe): support custom PrivateKernelProver and unify EmbeddedWalletOptions (#22348)
fix: update testnet compatibility test and bust cache on pinned artifact changes (#22429)
fix(pxe): support custom PrivateKernelProver and unify EmbeddedWalletOptions (backport #22348) (#22391)
refactor!: ephemeral arrays (#22162)
END_COMMIT_OVERRIDE

AztecBot and others added 9 commits April 8, 2026 07:51
…mbeddedWalletOptions (#22348)

Cherry-pick of merge commit cac2411 with conflicts in migration_notes.md.
Accept incoming migration note for EmbeddedWalletOptions pxe field.
…act changes

- Remove SponsoredFPC from genesis computation (testnet deployed without it)
- Update expected genesis archive root (verified against on-chain testnet L1)
- Mix pinned artifact archive hashes into compatibility test cache prefix
  so the test cache busts when pinned-protocol-contracts.tar.gz or
  pinned-build.tar.gz change
Replace cache_content_hash (which requires full CI environment) with
git hash-object for hashing pinned archive files directly.
Previous CI failure was unrelated (docs/example/bootstrap.sh), not
the cache_content_hash call. Restore the correct approach.
…act changes (#22429)

## Summary

Two changes to fix the testnet compatibility test breakage on v4-next:

**1. Fix test to match actual testnet deployment**
- Testnet was deployed without SponsoredFPC — remove it from genesis
computation
- Update expected genesis archive root to `0x15684c8c...` (verified
against on-chain testnet L1 rollup at `0xf6d0...c1` on Sepolia)
- All 3 values verified on-chain: VK tree root, protocol contracts hash,
genesis archive root

**2. Bust test cache when pinned artifacts change**
- Mix hashes of `pinned-protocol-contracts.tar.gz`,
`pinned-build.tar.gz` (VKs), and
`mock-protocol-circuits/pinned-build.tar.gz` into the compatibility test
cache prefix
- This ensures the test re-runs whenever pinned artifacts are updated,
preventing the CI cache from masking mismatches

## On-chain verification

```
$ cast call 0xf6d0...c1 "archiveAt(uint256)(bytes32)" 0 --rpc-url sepolia
0x15684c8c3d2106918d3860f777e50555b7166adff47df13cc652e2e5a50bf5c7  # genesis archive root

$ cast storage 0xf6d0...c1 <config.vkTreeRoot slot> --rpc-url sepolia
0x1dd2644a17d1ddd8831287a78c5a1033b7ae35cdf2a3db833608856c062fc2ba  # VK tree root

$ cast storage 0xf6d0...c1 <config.protocolContractsHash slot> --rpc-url sepolia
0x2672340d9a0107a7b81e6d10d25b854debe613f3272e8738e8df0ca2ff297141  # protocol contracts hash
```
…Options (backport #22348) (#22391)

## Summary

Backport of #22348
to v4-next.

Cherry-pick of merge commit cac2411 with one conflict in
`migration_notes.md` (trivially resolved — empty HEAD side, accepted
incoming migration note).

### Changes
- Replace `instanceof BBPrivateKernelProver` with duck-type
`isPrivateKernelProver()` check using `createChonkProof` as
distinguishing method
- Unify `pxeConfig`/`pxeOptions` into single `pxe` field on
`EmbeddedWalletOptions`
- Add `splitPxeOptions` helper and `EmbeddedWalletPXEOptions` type
- Add migration note for the API change

### Commit structure (3-commit backport)
1. Cherry-pick with conflict markers as-is
2. Conflict resolution (accept migration note)


ClaudeBox log: https://claudebox.work/s/947bc828b6966f6c?run=1
Implements a new type of array especially designed to use in oracle
interfaces between Aztec.nr and PXE. The memory space of of these arrays
is isolated by contract call frame and lives in memory. This makes them
faster to work with, but it also removes the need for a lot of
boilerplate to instantiate them, use them as params, and ultimately
dispose of them.

Closes F-136

---------

Co-authored-by: Jan Beneš <janbenes1234@gmail.com>
@AztecBot AztecBot requested a review from nventuro as a code owner April 9, 2026 14:09
## Summary
Fixes the `nargo fmt --check` failure on the backports PR #22441.

The comment in
`noir-projects/aztec-nr/aztec/src/messages/processing/mod.nr` exceeded
the line width limit, causing the formatter to reject it.

## Test plan
- CI `nargo fmt --check` should pass on the backports PR after this is
merged into `backport-to-v4-next-staging`

ClaudeBox log: https://claudebox.work/s/e09a3592270d40e2?run=1
@Thunkar Thunkar merged commit bc4993a into v4-next Apr 9, 2026
9 checks passed
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.

3 participants