Skip to content

feat: offchain reception (backport #20893)#21358

Closed
AztecBot wants to merge 3 commits intobackport-to-v4-stagingfrom
claudebox/backport-offchain-reception-v4
Closed

feat: offchain reception (backport #20893)#21358
AztecBot wants to merge 3 commits intobackport-to-v4-stagingfrom
claudebox/backport-offchain-reception-v4

Conversation

@AztecBot
Copy link
Collaborator

Summary

Backport of #20893 (feat: offchain reception) to v4-next.

The automatic cherry-pick failed due to conflicts in 9 files. This PR follows the 3-commit backport structure:

  1. Cherry-pick with conflicts — raw cherry-pick result with conflict markers committed as-is
  2. Conflict resolution — resolves all 9 conflicted files, adapting oracle naming from aztec_utl_xxx (next) to utilityXxx (v4-next) convention
  3. Build fixes — fixes compilation errors from API differences between branches

Conflicts resolved

  • docs/netlify.toml — error code redirects
  • noir-projects/aztec-nr/aztec/src/macros/aztec.nr — AztecConfig struct, sync_state generation, process_message macro
  • noir-projects/aztec-nr/aztec/src/messages/discovery/mod.nr — CustomMessageHandler type, do_sync_state signature
  • noir-projects/aztec-nr/aztec/src/messages/discovery/process_message.nr — custom message handler parameter
  • noir-projects/aztec-nr/aztec/src/oracle/message_processing.nr — oracle naming convention
  • noir-projects/aztec-nr/aztec/src/oracle/version.nr — oracle version bump (12→13)
  • yarn-project/pxe/src/contract_function_simulator/oracle/interfaces.ts — oracle interface naming
  • yarn-project/pxe/src/contract_function_simulator/oracle/oracle.ts — oracle handler naming
  • yarn-project/pxe/src/oracle_version.ts — oracle version

Build fixes (commit 3)

  • Added CustomMessageHandler import to macros/aztec.nr
  • Added 5th argument (Option::none()) to macro-generated process_message_ciphertext call
  • Added process_custom_message param to test_environment.nr
  • Fixed doc link path for AztecConfig

Verification

  • aztec-nr: compiles successfully
  • noir-contracts: compiles successfully
  • noir-protocol-circuits: compiles successfully
  • yarn-project: core packages compile (end-to-end/ivc-integration errors are pre-existing missing artifact issues)

ClaudeBox log: https://claudebox.work/s/8e2b788f05d4731d?run=1

mverzilli and others added 3 commits March 11, 2026 13:08
Adapted naming conventions: v4-next uses 'utilityXxx' oracle prefix vs 'aztec_utl_xxx' on next.
Added CustomMessageHandler type, updated process_message_ciphertext signature,
bumped oracle version to 13.
- Add CustomMessageHandler import and pass Option::none() in macro-generated
  process_message function (5th arg added by the PR)
- Fix test_environment.nr to pass process_custom_message Option::none() param
- Fix doc link path from crate::macros::AztecConfig to crate::macros::aztec::AztecConfig
@AztecBot AztecBot added the claudebox Owned by claudebox. it can push to this PR. label Mar 11, 2026
@ludamad
Copy link
Collaborator

ludamad commented Mar 12, 2026

Closing as duplicate — superseded by a newer attempt.

@ludamad ludamad closed this Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants