Struct TaggingSecretStrategy
pub struct TaggingSecretStrategy
{ /* private fields */ }
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
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_strategyonTestEnvironmentOptions. Production wallets express the strategy in PXE; the Noir path only consumes the resolvedResolvedTaggingStrategy.