aztec-nr - noir_aztec::messages::processing::message_context

Struct MessageContext

pub struct MessageContext {
    pub tx_hash: Field,
    pub unique_note_hashes_in_tx: BoundedVec<Field, 64>,
    pub first_nullifier_in_tx: Field,
    pub recipient: AztecAddress,
}

Additional information needed to process a message.

All messages exist in the context of a transaction, and information about that transaction is typically required in order to perform validation, store results, etc. For example, messages containing notes require knowledge of note hashes and the first nullifier in order to find the note's nonce.

Fields

tx_hash: Field
unique_note_hashes_in_tx: BoundedVec<Field, 64>
first_nullifier_in_tx: Field
recipient: AztecAddress

Trait implementations

impl Deserialize for MessageContext

pub fn deserialize(serialized: [Field; 68]) -> Self

impl Eq for MessageContext

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