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
Name | Type |
---|---|
context | PrivateContext |
event | Event |
randomness | Field |
ovsk_app | Field |
ovpk | OvpkM |
recipient | AztecAddress |
sender | AztecAddress |
compute_payload_and_hash_unconstrained
compute_payload_and_hash_unconstrained(context, event, randomness, ovpk, recipient, sender, );
Parameters
Name | Type |
---|---|
context | PrivateContext |
event | Event |
randomness | Field |
ovpk | OvpkM |
recipient | AztecAddress |
sender | AztecAddress |
encode_and_encrypt_event
encode_and_encrypt_event(context, ovpk, recipient, sender, );
Parameters
Name | Type |
---|---|
context | &mut PrivateContext |
ovpk | OvpkM |
recipient | AztecAddress |
sender | AztecAddress |
encode_and_encrypt_event_unconstrained
encode_and_encrypt_event_unconstrained(context, ovpk, recipient, sender, );
Parameters
Name | Type |
---|---|
context | &mut PrivateContext |
ovpk | OvpkM |
recipient | AztecAddress |
sender | AztecAddress |
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
Name | Type |
---|---|
context | &mut PrivateContext |
randomness | Field |
ovpk | OvpkM |
recipient | AztecAddress |
sender | AztecAddress |
encode_and_encrypt_event_with_randomness_unconstrained
encode_and_encrypt_event_with_randomness_unconstrained(context, randomness, ovpk, recipient, sender, );
Parameters
Name | Type |
---|---|
context | &mut PrivateContext |
randomness | Field |
ovpk | OvpkM |
recipient | AztecAddress |
sender | AztecAddress |