aztec-nr - noir_aztec::messages::logs::event

Function to_encrypted_private_event_message

pub fn to_encrypted_private_event_message<Event>(
    event: Event,
    recipient: AztecAddress,
) -> ([Field; 17], Field)
where Event: EventInterface, Event: Serialize

Creates an encrypted private event message (i.e. one of type PRIVATE_EVENT_MSG_TYPE_ID) by encoding the contents of the event and then encrypting them for recipient.