feat(aztec-nr): add calculate_secret_and_index constrained-delivery helper#23866
Open
vezenovm wants to merge 10 commits into
Open
feat(aztec-nr): add calculate_secret_and_index constrained-delivery helper#23866vezenovm wants to merge 10 commits into
vezenovm wants to merge 10 commits into
Conversation
This was referenced Jun 4, 2026
…elper Add the sender-side helper that resolves the app-siloed handshake secret and the next per-secret index for a constrained send: it queries the handshake registry off-chain, bootstraps a non-interactive handshake when none exists, and constrains the oracle-supplied secret via the registry's validate path or the prior-nullifier chain. Adds the DOM_SEP__CONSTRAINED_MSG_NULLIFIER domain separator and a test contract exercising the helper directly. The high-level builder still mocks constrained tagging (see F-697); the emit helper that wires this into delivery and the e2e test land in F-670.
… API Follow-up to the OnchainDeliveryMode constructor hiding: the constrained delivery helper and its test contract no longer reference the raw ONCHAIN_CONSTRAINED discriminant or the private mode constructors. calculate_secret_and_index derives the mode once via MessageDelivery::onchain_constrained().mode(), serializes registry-call arguments with mode.to_field(), and passes the typed mode to get_next_tagging_index.
b9f12b8 to
befb4ea
Compare
69abd69 to
e2a43cd
Compare
…ained-delivery-helpers
…ained-delivery-helpers
…ained-delivery-helpers
…ained-delivery-helpers
Collaborator
Flakey Tests🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes F-669
calculate_secret_and_indexreads the registry secret hint, bootstraps a non-interactive handshake when none exists, and constrains the hints: index 0 validates the handshake against the registry, index > 0 proves the previous chain nullifier exists.DOM_SEP__CONSTRAINED_MSG_NULLIFIERdomain separator.Stacked on #23865 (F-697); followed by #23867 (F-670).