Skip to main content

AddressNote

Fields

FieldType
addressAztecAddress
ownerAztecAddress
randomnessField
headerNoteHeader

Methods

new

AddressNote::new(address, owner, randomness);

Parameters

NameType
addressAztecAddress
ownerAztecAddress
randomnessField

TestEvent

Fields

FieldType
value0Field
value1Field
value2Field

Standalone Functions

from_note

from_note(note, storage_slot);

Parameters

NameType
noteT
storage_slotField

from_event

from_event(event, randomness);

Parameters

NameType
eventT
randomnessField

compute_ciphertext

compute_ciphertext(self, eph_sk, ivpk_app);

Parameters

NameType
self
eph_skGrumpkinPrivateKey
ivpk_appGrumpkinPoint

compute_note_content_hash

compute_note_content_hash(self);

Parameters

NameType
self

get_note_type_id

get_note_type_id();

Takes no parameters.

get_header

get_header(self);

Parameters

NameType
self

set_header

set_header(&mut self, header);

Parameters

NameType
&mut self
headerNoteHeader

compute_nullifier

compute_nullifier(self, context);

Parameters

NameType
self
context&mut PrivateContext

compute_nullifier_without_context

compute_nullifier_without_context(self);

Parameters

NameType
self

serialize_content

serialize_content(self);

Parameters

NameType
self

deserialize_content

deserialize_content(fields);

Parameters

NameType
fields[Field; ADDRESS_NOTE_LEN]

to_be_bytes

to_be_bytes(self, storage_slot);

Parameters

NameType
self
storage_slotField

test_encrypted_note_log_incoming_body

test_encrypted_note_log_incoming_body();

Takes no parameters.

serialize

serialize(self);

Parameters

NameType
self

_selector

_selector(self);

Parameters

NameType
self

to_be_bytes

to_be_bytes(self, randomness);

Parameters

NameType
self
randomnessField

test_encrypted_log_event_incoming_body

test_encrypted_log_event_incoming_body();

Takes no parameters.