Skip to main content

notes

Standalone Functions

notify_created_note

notify_created_note(storage_slot, note_type_id, serialized_note, note_hash, counter, );

/ transaction. This note should only be added to the non-volatile database if found in an actual block.

Parameters

NameType
storage_slotField
note_type_idField
serialized_note[Field; N]
note_hashField
counteru32

notify_nullified_note

notify_nullified_note(nullifier, note_hash, counter);

/ actual block.

Parameters

NameType
nullifierField
note_hashField
counteru32

notify_created_note_oracle_wrapper

notify_created_note_oracle_wrapper(storage_slot, note_type_id, serialized_note, note_hash, counter, );

Parameters

NameType
storage_slotField
note_type_idField
serialized_note[Field; N]
note_hashField
counteru32

notify_created_note_oracle

notify_created_note_oracle(_storage_slot, _note_type_id, _serialized_note, _note_hash, _counter, );

Parameters

NameType
_storage_slotField
_note_type_idField
_serialized_note[Field; N]
_note_hashField
_counteru32

notify_nullified_note_oracle_wrapper

notify_nullified_note_oracle_wrapper(nullifier, note_hash, counter, );

Parameters

NameType
nullifierField
note_hashField
counteru32

notify_nullified_note_oracle

notify_nullified_note_oracle(_nullifier, _note_hash, _counter, );

Parameters

NameType
_nullifierField
_note_hashField
_counteru32

get_notes_oracle

get_notes_oracle(_storage_slot, _num_selects, _select_by_indexes, _select_by_offsets, _select_by_lengths, _select_values, _select_comparators, _sort_by_indexes, _sort_by_offsets, _sort_by_lengths, _sort_order, _limit, _offset, _status, _return_size, _placeholder_fields, );

Parameters

NameType
_storage_slotField
_num_selectsu8
_select_by_indexes[u8; N]
_select_by_offsets[u8; N]
_select_by_lengths[u8; N]
_select_values[Field; N]
_select_comparators[u8; N]
_sort_by_indexes[u8; N]
_sort_by_offsets[u8; N]
_sort_by_lengths[u8; N]
_sort_order[u8; N]
_limitu32
_offsetu32
_statusu8
_return_sizeu32
_placeholder_fields[Field; S]

get_notes_oracle_wrapper

get_notes_oracle_wrapper(storage_slot, num_selects, select_by_indexes, select_by_offsets, select_by_lengths, select_values, select_comparators, sort_by_indexes, sort_by_offsets, sort_by_lengths, sort_order, limit, offset, status, mut placeholder_fields, );

Parameters

NameType
storage_slotField
num_selectsu8
select_by_indexes[u8; N]
select_by_offsets[u8; N]
select_by_lengths[u8; N]
select_values[Field; N]
select_comparators[u8; N]
sort_by_indexes[u8; N]
sort_by_offsets[u8; N]
sort_by_lengths[u8; N]
sort_order[u8; N]
limitu32
offsetu32
statusu8
mut placeholder_fields[Field; S]

get_notes

get_notes(storage_slot, num_selects, select_by_indexes, select_by_offsets, select_by_lengths, select_values, select_comparators, sort_by_indexes, sort_by_offsets, sort_by_lengths, sort_order, limit, offset, status, mut placeholder_opt_notes, // TODO, // TODO, // Turbofish hack? Compiler breaks calculating read_offset unless we add this parameter);

Parameters

NameType
storage_slotField
num_selectsu8
select_by_indexes[u8; M]
select_by_offsets[u8; M]
select_by_lengths[u8; M]
select_values[Field; M]
select_comparators[u8; M]
sort_by_indexes[u8; M]
sort_by_offsets[u8; M]
sort_by_lengths[u8; M]
sort_order[u8; M]
limitu32
offsetu32
statusu8
mut placeholder_opt_notes[Option<Note>; S]
// TODORemove it and use limit to initialize the note array.
placeholder_fields
// TODORemove it and use limit to initialize the note array.
_placeholder_note_length
// Turbofish hack? Compiler breaks calculating read_offset unless we add this parameter

check_nullifier_exists

check_nullifier_exists(inner_nullifier);

Parameters

NameType
inner_nullifierField

check_nullifier_exists_oracle

check_nullifier_exists_oracle(_inner_nullifier);

Parameters

NameType
_inner_nullifierField

get_app_tag_as_sender

get_app_tag_as_sender(sender, recipient);

Parameters

NameType
senderAztecAddress
recipientAztecAddress

get_app_tagging_secret_as_sender

get_app_tagging_secret_as_sender(sender, recipient, );

Parameters

NameType
senderAztecAddress
recipientAztecAddress

get_app_tagging_secret_as_sender_oracle

get_app_tagging_secret_as_sender_oracle(_sender, _recipient, );

Parameters

NameType
_senderAztecAddress
_recipientAztecAddress

increment_app_tagging_secret_index_as_sender

increment_app_tagging_secret_index_as_sender(sender, recipient);

/ that are not found by the recipient.

Parameters

NameType
senderAztecAddress
recipientAztecAddress

increment_app_tagging_secret_index_as_sender_wrapper

increment_app_tagging_secret_index_as_sender_wrapper(sender, recipient, );

Parameters

NameType
senderAztecAddress
recipientAztecAddress

increment_app_tagging_secret_index_as_sender_oracle

increment_app_tagging_secret_index_as_sender_oracle(_sender, _recipient, );

Parameters

NameType
_senderAztecAddress
_recipientAztecAddress

sync_notes

sync_notes();

/ for later querying via the get_notes oracle.

Takes no parameters.

sync_notes_oracle_wrapper

sync_notes_oracle_wrapper();

Takes no parameters.

sync_notes_oracle

sync_notes_oracle();

Takes no parameters.