Skip to content

refactor(aztec-nr): address constrained-delivery review comments#24217

Open
nchamo wants to merge 2 commits into
mv/f-669-constrained-delivery-helpersfrom
nc/address-23866-comments
Open

refactor(aztec-nr): address constrained-delivery review comments#24217
nchamo wants to merge 2 commits into
mv/f-669-constrained-delivery-helpersfrom
nc/address-23866-comments

Conversation

@nchamo

@nchamo nchamo commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Addresses the review comments on #23866 (constrained message delivery). Branched off and based on that PR so these follow-up changes can be reviewed in isolation.

  • aztec-nr helpers: tightened the constrained-delivery docs, fixed the misleading index > 0 nullifier comment, switched secret resolution to map/unwrap_or_else, and renamed "chain" -> "sequence" across code/tests to avoid colliding with the existing "chain" (blockchain) meaning.
  • Noir tests/contracts: pinned the get_handshakes selector in the registry selector-match test, renamed the test helper to authorizing, and dropped redundant TXE tests now covered by the e2e and unit suites (plus the delivery_unconstrained_handshake compile-failure pin).
  • PXE: removed the temporary get_app_siloed_secret caller-arg authorization check (avoids conflicting with feat(aztec-nr)!: add msg_sender to the utility context #24062), moved the registry-read helpers below the class, and reworked the cross-contract authorization test into it.each with shared beforeEach/afterEach.
  • Removed a stray pied! file that had been accidentally committed.

The docs changes from the review are deferred to #24040, which owns the tagging-secret-source framing.

@nchamo nchamo added the ci-draft Run CI on draft PRs. label Jun 20, 2026
@nchamo nchamo self-assigned this Jun 20, 2026
@AztecBot

AztecBot commented Jun 20, 2026

Copy link
Copy Markdown
Collaborator

Flakey Tests

🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry.

\033FLAKED\033 (8;;http://ci.aztec-labs.com/29cf9acc74029658�29cf9acc740296588;;�):  yarn-project/end-to-end/scripts/run_test.sh simple src/e2e_p2p/sentinel_status_slash.parallel.test.ts "slashes the proposer with INACTIVITY when checkpoint validation records unvalidated" (210s) (code: 0) group:e2e-p2p-epoch-flakes

@nchamo nchamo marked this pull request as ready for review June 20, 2026 20:56
@nchamo nchamo requested a review from nventuro as a code owner June 20, 2026 20:57

**Onchain delivery with guaranteed correct content.**

**WARNING**: This mode is [currently NOT fully constrained](https://github.com/AztecProtocol/aztec-packages/issues/14565). The log's tag is unconstrained, meaning a malicious sender could prevent the recipient from finding the message.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Undid the changes to this doc, so we can do them all together in #24040. It's very hard to build good docs in small steps

#### Registering known senders

To discover address-secret notes from a particular sender, the recipient's PXE must know the sender's address in advance so it can compute the shared tagging secret. Register senders using the wallet API:
To discover notes from a particular sender, the recipient's PXE must know the sender's address in advance so it can compute the shared tagging secret. Register senders using the wallet API:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Undid the changes to this doc, so we can do them all together in #24040. It's very hard to build good docs in small steps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-draft Run CI on draft PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants