For the complete documentation index, see llms.txt.
aztec-nr - noir_aztec::test::helpers::tagging_secret_strategy

Struct TaggingSecretStrategy

pub struct TaggingSecretStrategy
{ /* private fields */ }

How a message's tagging secret is chosen: the wallet's strategy.

This type only exists for tests: a Noir test sets it via with_default_tag_secret_strategy on TestEnvironmentOptions. Production wallets express the strategy in PXE; the Noir path only consumes the resolved ResolvedTaggingStrategy.

Implementations

impl TaggingSecretStrategy

pub fn non_interactive_handshake() -> Self

A secret established through a non-interactive handshake.

pub fn interactive_handshake() -> Self

A secret established through an interactive handshake.

pub fn address_derived() -> Self

A secret derived from the sender's and recipient's address keys via Diffie-Hellman.

The PXE performs the key exchange, so the wallet supplies no material.

pub fn arbitrary_secret(secret: EmbeddedCurvePoint) -> Self

A raw shared secret point the two parties already share offchain, supplied by the wallet.

The PXE app-silos the point before use.

Trait implementations

impl Deserialize for TaggingSecretStrategy

pub fn deserialize(fields: [Field; 3]) -> Self pub fn stream_deserialize<let K: u32>(reader: &mut Reader<K>) -> Self

impl Eq for TaggingSecretStrategy

pub fn eq(_self: Self, _other: Self) -> bool

impl Serialize for TaggingSecretStrategy

pub fn serialize(self) -> [Field; 3] pub fn stream_serialize<let K: u32>(self, writer: &mut Writer<K>)