For the complete documentation index, see llms.txt.
aztec-nr - noir_aztec::messages::delivery

Struct OnchainConstrainedDelivery

pub struct OnchainConstrainedDelivery
{ /* private fields */ }

On-chain constrained delivery. Returned by MessageDelivery::onchain_constrained.

By default the tag reuses a handshake already registered for the pair, and otherwise falls back to the wallet-resolved tagging secret strategy. Constrained delivery only supports handshake-backed derivations.

Implementations

impl OnchainConstrainedDelivery

pub fn with_sender(&mut self, sender: AztecAddress) -> Self

Overrides the sender address used for discovery tag derivation.

See OnchainUnconstrainedDelivery::with_sender for details.

Examples

MessageDelivery::onchain_constrained().with_sender(self.address)
pub fn via_non_interactive_handshake(&mut self) -> Self

Derives the discovery tag from a non-interactive handshake for the pair, reusing an existing one and creating a fresh one only when none exists. Overrides the wallet's default resolution.

Constrained delivery only supports constrained secrets (e.g., handshake-registry backed derivations)

pub fn via_interactive_handshake(&mut self) -> Self

Derives the discovery tag from an interactive handshake.

Reuses an existing handshake for the pair, creating a fresh interactive one only when none exists. Overrides the wallet's default resolution.

Unlike a non-interactive handshake, establishing an interactive one announces nothing onchain, but it requires the recipient's cooperation: they must answer the registry's signed-authorization request, so the send fails if they cannot be reached.

Trait implementations

impl MessageDeliveryBuilder for OnchainConstrainedDelivery

pub fn build_message_delivery(self) -> MessageDelivery