Skip to content

refactor(aztec-nr): keep handshake secrets internal to TagSecretSource#24508

Merged
nchamo merged 3 commits into
merge-train/fairies-v5from
nchamo/secrets-cleanup
Jul 6, 2026
Merged

refactor(aztec-nr): keep handshake secrets internal to TagSecretSource#24508
nchamo merged 3 commits into
merge-train/fairies-v5from
nchamo/secrets-cleanup

Conversation

@nchamo

@nchamo nchamo commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • TagSecretSource::obtain_secrets returned AppSiloedHandshakeSecrets for every source kind. That was wrong: the pair only makes sense for handshake-backed sources, and the unconstrained kind had to fake sender_only: 0. It appears this leaked in automatically during a Claude conflict resolution.
  • The cross-source interface is now a bare tag secret. resolve_tag_secret returns the Field the tag derives from, and constrain_tag_secret anchors the sequence and emits the sequence nullifier itself. AppSiloedHandshakeSecrets stays where it is honest: the registry wire type, the constrained-delivery helpers, and the source's internal payload.
  • This way feels better: tag derivation only ever sees the single concept it consumes.

@nchamo nchamo self-assigned this Jul 3, 2026
@nchamo nchamo added ci-draft Run CI on draft PRs. ci-no-fail-fast Sets NO_FAIL_FAST in the CI so the run is not aborted on the first failure labels Jul 3, 2026
@nchamo
nchamo marked this pull request as ready for review July 3, 2026 16:43
@nchamo
nchamo requested a review from nventuro as a code owner July 3, 2026 16:43
@nchamo
nchamo requested a review from vezenovm July 3, 2026 16:43
Comment thread noir-projects/aztec-nr/aztec/src/messages/delivery/tag.nr
Comment thread noir-projects/aztec-nr/aztec/src/messages/delivery/tag_secret_source.nr Outdated
@nchamo
nchamo merged commit c4af198 into merge-train/fairies-v5 Jul 6, 2026
12 checks passed
@nchamo
nchamo deleted the nchamo/secrets-cleanup branch July 6, 2026 16:05
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. ci-no-fail-fast Sets NO_FAIL_FAST in the CI so the run is not aborted on the first failure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants