Skip to main content

payload

Standalone Functions

compute_encrypted_event_log

compute_encrypted_event_log(contract_address, randomness, ovsk_app, ovpk, ivpk, event);

Parameters

NameType
contract_addressAztecAddress
randomnessField
ovsk_appField
ovpkPoint
ivpkPoint
eventEvent

compute_encrypted_note_log

compute_encrypted_note_log(contract_address, storage_slot, ovsk_app, ovpk, ivpk, note);

Parameters

NameType
contract_addressAztecAddress
storage_slotField
ovsk_appField
ovpkPoint
ivpkPoint
noteNote

fr_to_fq

fr_to_fq(r);

/ This is fine because modulus of the base field is smaller than the modulus of the scalar field.

Parameters

NameType
rField

compute_ivpk_app

compute_ivpk_app(ivpk, contract_address);

Parameters

NameType
ivpkPoint
contract_addressAztecAddress

test_compute_encrypted_note_log

test_compute_encrypted_note_log();

Takes no parameters.