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
Name | Type |
---|---|
storage_slot | Field |
note_type_id | Field |
serialized_note | [Field; N] |
note_hash | Field |
counter | u32 |
notify_nullified_note
notify_nullified_note(nullifier, note_hash, counter);
/ actual block.
Parameters
Name | Type |
---|---|
nullifier | Field |
note_hash | Field |
counter | u32 |
notify_created_note_oracle_wrapper
notify_created_note_oracle_wrapper(storage_slot, note_type_id, serialized_note, note_hash, counter, );
Parameters
Name | Type |
---|---|
storage_slot | Field |
note_type_id | Field |
serialized_note | [Field; N] |
note_hash | Field |
counter | u32 |
notify_created_note_oracle
notify_created_note_oracle(_storage_slot, _note_type_id, _serialized_note, _note_hash, _counter, );
Parameters
Name | Type |
---|---|
_storage_slot | Field |
_note_type_id | Field |
_serialized_note | [Field; N] |
_note_hash | Field |
_counter | u32 |
notify_nullified_note_oracle_wrapper
notify_nullified_note_oracle_wrapper(nullifier, note_hash, counter, );
Parameters
Name | Type |
---|---|
nullifier | Field |
note_hash | Field |
counter | u32 |
notify_nullified_note_oracle
notify_nullified_note_oracle(_nullifier, _note_hash, _counter, );
Parameters
Name | Type |
---|---|
_nullifier | Field |
_note_hash | Field |
_counter | u32 |
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
Name | Type |
---|---|
_storage_slot | Field |
_num_selects | u8 |
_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] |
_limit | u32 |
_offset | u32 |
_status | u8 |
_return_size | u32 |
_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
Name | Type |
---|---|
storage_slot | Field |
num_selects | u8 |
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] |
limit | u32 |
offset | u32 |
status | u8 |
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
Name | Type |
---|---|
storage_slot | Field |
num_selects | u8 |
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] |
limit | u32 |
offset | u32 |
status | u8 |
mut placeholder_opt_notes | [Option<Note>; S] |
// TODO | Remove it and use limit to initialize the note array. |
placeholder_fields | |
// TODO | Remove 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
Name | Type |
---|---|
inner_nullifier | Field |
check_nullifier_exists_oracle
check_nullifier_exists_oracle(_inner_nullifier);
Parameters
Name | Type |
---|---|
_inner_nullifier | Field |
get_app_tag_bytes_as_sender
get_app_tag_bytes_as_sender(sender, recipient, );
Parameters
Name | Type |
---|---|
sender | AztecAddress |
recipient | AztecAddress |
get_app_tagging_secret_as_sender
get_app_tagging_secret_as_sender(sender, recipient, );
Parameters
Name | Type |
---|---|
sender | AztecAddress |
recipient | AztecAddress |
get_app_tagging_secret_as_sender_oracle
get_app_tagging_secret_as_sender_oracle(_sender, _recipient, );
Parameters
Name | Type |
---|---|
_sender | AztecAddress |
_recipient | AztecAddress |
increment_app_tagging_secret_index_as_sender
increment_app_tagging_secret_index_as_sender(sender, recipient);
/ that are not found by the recipient.
Parameters
Name | Type |
---|---|
sender | AztecAddress |
recipient | AztecAddress |
increment_app_tagging_secret_index_as_sender_wrapper
increment_app_tagging_secret_index_as_sender_wrapper(sender, recipient, );
Parameters
Name | Type |
---|---|
sender | AztecAddress |
recipient | AztecAddress |
increment_app_tagging_secret_index_as_sender_oracle
increment_app_tagging_secret_index_as_sender_oracle(_sender, _recipient, );
Parameters
Name | Type |
---|---|
_sender | AztecAddress |
_recipient | AztecAddress |
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.