Skip to main content

encrypted_note_emission

Standalone Functions

compute_payload_and_hash

compute_payload_and_hash(context, note, ovsk_app, ovpk, recipient, sender, );

/ Computes private note log payload and a log hash

Parameters

NameType
contextPrivateContext
noteNote
ovsk_appField
ovpkOvpkM
recipientAztecAddress
senderAztecAddress

compute_payload_and_hash_unconstrained

compute_payload_and_hash_unconstrained(context, note, ovpk, recipient, sender, );

Parameters

NameType
contextPrivateContext
noteNote
ovpkOvpkM
recipientAztecAddress
senderAztecAddress

encode_and_encrypt_note

encode_and_encrypt_note(context, ovpk, recipient, // TODO, we require a sender. Should we have the tagging secret oracle take a ovpk_m as input instead of the address?
sender, );

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

Parameters

NameType
context&mut PrivateContext
ovpkOvpkM
recipientAztecAddress
// TODOWe need this because to compute a tagging secret
we require a sender. Should we have the tagging secret oracle take a ovpk_m as input instead of the address?
senderAztecAddress

encode_and_encrypt_note_unconstrained

encode_and_encrypt_note_unconstrained(context, ovpk, recipient, // TODO, we require a sender. Should we have the tagging secret oracle take a ovpk_m as input instead of the address?
sender, );

Parameters

NameType
context&mut PrivateContext
ovpkOvpkM
recipientAztecAddress
// TODOWe need this because to compute a tagging secret
we require a sender. Should we have the tagging secret oracle take a ovpk_m as input instead of the address?
senderAztecAddress