aztec-nr - noir_aztec::messages::processing::offchain

Struct OffchainMessage

pub struct OffchainMessage {
    pub ciphertext: BoundedVec<Field, 15>,
    pub recipient: AztecAddress,
    pub tx_hash: Option<Field>,
    pub anchor_block_timestamp: u64,
}

A message delivered via the offchain_receive utility function.

Fields

ciphertext: BoundedVec<Field, 15>

The encrypted message payload.

recipient: AztecAddress

The intended recipient of the message.

tx_hash: Option<Field>

The hash of the transaction that produced this message. Option::none indicates a tx-less message.

anchor_block_timestamp: u64

Anchor block timestamp at message emission.

Trait implementations

impl Deserialize for OffchainMessage

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

impl Serialize for OffchainMessage

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