Skip to main content

encrypted_event_emission

Standalone Functions

compute_payload_and_hash

compute_payload_and_hash(context, event, randomness, ovsk_app, ovpk, recipient, sender, );

/ Computes private event log payload and a log hash

Parameters

NameType
contextPrivateContext
eventEvent
randomnessField
ovsk_appField
ovpkOvpkM
recipientAztecAddress
senderAztecAddress

compute_payload_and_hash_unconstrained

compute_payload_and_hash_unconstrained(context, event, randomness, ovpk, recipient, sender, );

Parameters

NameType
contextPrivateContext
eventEvent
randomnessField
ovpkOvpkM
recipientAztecAddress
senderAztecAddress

encode_and_encrypt_event

encode_and_encrypt_event(context, ovpk, recipient, sender, );

Parameters

NameType
context&mut PrivateContext
ovpkOvpkM
recipientAztecAddress
senderAztecAddress

encode_and_encrypt_event_unconstrained

encode_and_encrypt_event_unconstrained(context, ovpk, recipient, sender, );

Parameters

NameType
context&mut PrivateContext
ovpkOvpkM
recipientAztecAddress
senderAztecAddress

encode_and_encrypt_event_with_randomness

encode_and_encrypt_event_with_randomness(context, randomness, ovpk, recipient, sender, );

If you get weird behavior it might be because of it.

Parameters

NameType
context&mut PrivateContext
randomnessField
ovpkOvpkM
recipientAztecAddress
senderAztecAddress

encode_and_encrypt_event_with_randomness_unconstrained

encode_and_encrypt_event_with_randomness_unconstrained(context, randomness, ovpk, recipient, sender, );

Parameters

NameType
context&mut PrivateContext
randomnessField
ovpkOvpkM
recipientAztecAddress
senderAztecAddress