Skip to main content

event

Standalone Functions

compute_event_plaintext_for_this_strategy

compute_event_plaintext_for_this_strategy(event);

/ NB: The extra + 1 is for the event_type_id:

Parameters

NameType
eventEvent

compute_log

compute_log(context, event, recipient, sender, );

we perform some note-specific log length assertions.

Parameters

NameType
contextPrivateContext
eventEvent
recipientAztecAddress
senderAztecAddress

compute_log_unconstrained

compute_log_unconstrained(context, event, recipient, sender, );

Parameters

NameType
contextPrivateContext
eventEvent
recipientAztecAddress
senderAztecAddress

encode_and_encrypt_event

encode_and_encrypt_event(context, recipient, sender, );

/ private logs.

Parameters

NameType
context&mut PrivateContext
recipientAztecAddress
senderAztecAddress

encode_and_encrypt_event_unconstrained

encode_and_encrypt_event_unconstrained(context, recipient, sender, );

/// Only use this function in scenarios where the recipient not receiving the event is an acceptable outcome.

Parameters

NameType
context&mut PrivateContext
recipientAztecAddress
senderAztecAddress