Skip to main content

notes

Standalone Functions

notify_created_note_oracle

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

Parameters

NameType
_storage_slotField
_note_type_idField
_serialized_note[Field; N]
_inner_note_hashField
_counteru32

notify_created_note

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

Parameters

NameType
storage_slotField
note_type_idField
serialized_note[Field; N]
inner_note_hashField
counteru32

notify_nullified_note_oracle

notify_nullified_note_oracle(_nullifier, _inner_note_hash, _counter);

Parameters

NameType
_nullifierField
_inner_note_hashField
_counteru32

notify_nullified_note

notify_nullified_note(nullifier, inner_note_hash, counter);

Parameters

NameType
nullifierField
inner_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);

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

check_nullifier_exists_oracle

check_nullifier_exists_oracle(_inner_nullifier);

Parameters

NameType
_inner_nullifierField

check_nullifier_exists

check_nullifier_exists(inner_nullifier);

Parameters

NameType
inner_nullifierField