Skip to content

refactor(aztec-nr): unify existing-handshake lookup for tag secret sources - #24435

Merged
nchamo merged 2 commits into
nchamo/handshake-tag-derivationfrom
mv/unify-existing-handshake-lookup
Jul 1, 2026
Merged

refactor(aztec-nr): unify existing-handshake lookup for tag secret sources#24435
nchamo merged 2 commits into
nchamo/handshake-tag-derivationfrom
mv/unify-existing-handshake-lookup

Conversation

@vezenovm

@vezenovm vezenovm commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • default_tag_secret_source (the wallet-resolved default) and TagDerivation::into_tag_secret_source's non-interactive-handshake branch both looked up an existing registered handshake for (sender, recipient) and mapped it to TagSecretSource::existing_handshake(secrets), only differing in what ran when none existed.
  • Extracts that shared lookup into existing_handshake_secrets_or_else, parameterized by the fallback closure, in tag_derivation.nr.

Test plan

  • nargo check passes for the aztec package
  • Confirmed the pre-existing local nargo test failures for this file's tests (missing TXE oracle resolver) are unrelated to this change by reproducing them on the unmodified base branch

…urces

default_tag_secret_source and TagDerivation::into_tag_secret_source's
non-interactive-handshake branch both looked up an existing registered
handshake and fell back differently when none existed. Extract the
shared lookup into existing_handshake_secrets_or_else, parameterized by
the fallback.
Comment thread noir-projects/aztec-nr/aztec/src/messages/delivery/tag_derivation.nr Outdated
@nchamo
nchamo marked this pull request as ready for review July 1, 2026 16:13
@nchamo
nchamo requested a review from nventuro as a code owner July 1, 2026 16:13
@nchamo
nchamo merged commit 61ab9c6 into nchamo/handshake-tag-derivation Jul 1, 2026
12 of 13 checks passed
@nchamo
nchamo deleted the mv/unify-existing-handshake-lookup branch July 1, 2026 16:13
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.

2 participants