Skip to content

feat(aztec-nr): include delivery mode in handshake discovery#23873

Merged
nchamo merged 7 commits into
merge-train/fairies-v5from
nchamo/f-588-constrained-delivery-tagged-log-retrieval-in-default
Jun 5, 2026
Merged

feat(aztec-nr): include delivery mode in handshake discovery#23873
nchamo merged 7 commits into
merge-train/fairies-v5from
nchamo/f-588-constrained-delivery-tagged-log-retrieval-in-default

Conversation

@nchamo

@nchamo nchamo commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Handshake announcement logs now encrypt [eph_pk.x, mode] instead of just [eph_pk.x], so the recipient knows the delivery mode (constrained vs unconstrained) for each handshake.
  • The sync handler stores DiscoveredHandshake { eph_pk, mode } in the capsule array instead of bare EmbeddedCurvePoint, and get_handshakes returns this enriched type.
  • ProvidedSecret.mode now uses delivery mode constants directly (2/3) instead of a separate numbering (0/1), eliminating the need for a mapping layer.

@nchamo nchamo requested a review from nventuro as a code owner June 4, 2026 17:03
@nchamo nchamo self-assigned this Jun 4, 2026
/// enumerate on its own (e.g. handshake-derived ones). `mode` is a delivery mode constant from
/// [`crate::messages::message_delivery`] (`ONCHAIN_UNCONSTRAINED` or `ONCHAIN_CONSTRAINED`).
#[derive(Serialize)]
#[allow(dead_code)]

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.

Since we removed the test, we now need to add this. Until we actually use it later

@nchamo nchamo requested a review from vezenovm June 4, 2026 19:00
@nchamo nchamo enabled auto-merge (squash) June 4, 2026 19:52
@AztecBot

AztecBot commented Jun 5, 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/3cb9f20f8d19a58b�3cb9f20f8d19a58b8;;�):  yarn-project/end-to-end/scripts/run_test.sh simple src/e2e_epochs/epochs_invalidate_block.parallel.test.ts "proposer invalidates multiple checkpoints" (457s) (code: 0) group:e2e-p2p-epoch-flakes

@nchamo nchamo disabled auto-merge June 5, 2026 13:15
@nchamo nchamo merged commit 0790778 into merge-train/fairies-v5 Jun 5, 2026
15 checks passed
@nchamo nchamo deleted the nchamo/f-588-constrained-delivery-tagged-log-retrieval-in-default branch June 5, 2026 13:15
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