Function emit_event_in_private
pub fn emit_event_in_private<Event>(
event: Event,
context: &mut PrivateContext,
recipient: AztecAddress,
delivery_mode: u8,
)
where
Event: EventInterface,
Event: Serialize
pub fn emit_event_in_private<Event>(
event: Event,
context: &mut PrivateContext,
recipient: AztecAddress,
delivery_mode: u8,
)
where
Event: EventInterface,
Event: Serialize
Emits an event that can be delivered either via private logs or offchain messages, with configurable encryption and tagging constraints.
Arguments
event- The event to emitcontext- The private context to emit the event inrecipient- The address that should receive this eventdelivery_mode- Controls encryption, tagging, and delivery constraints. Must be a compile-time constant. SeeMessageDeliveryEnumfor details on the available modes.