TokenNoteProperties
/ Generates note properties struct for a given note struct s
. / / Example: / ```
TokenNoteFields_5695262104
/ Generates note export for a given note struct s
. The export is a global variable that contains note type id, / note name and information about note fields (field name, index and whether the field is nullable or not). / / Example: / ```
TokenNoteSetupPayload
/ Generates setup payload for a given note struct s
. The setup payload contains log plaintext and hiding point. / / Example: / ```
Methods
new
TokenNoteSetupPayload::new(mut self, npk_m_hash, randomness, storage_slot);
Parameters
Name | Type |
---|---|
mut self | |
npk_m_hash | Field |
randomness | Field |
storage_slot | Field |
TokenNoteFinalizationPayload
/ Generates finalization payload for a given note struct s
. The finalization payload contains log and note hash. / / Example: / ```
Methods
new
TokenNoteFinalizationPayload::new(mut self, hiding_point, amount);
Parameters
Name | Type |
---|---|
mut self | |
hiding_point | aztec |
amount | U128 |
Standalone Functions
compute_note_type_id
compute_note_type_id(name);
Parameters
Name | Type |
---|---|
name | Quoted |
to_be_bytes
to_be_bytes(self, storage_slot);
Parameters
Name | Type |
---|---|
self | |
storage_slot | Field |
deserialize_content
deserialize_content(value);
Parameters
Name | Type |
---|---|
value | [Field; N] |
serialize_content
serialize_content(self);
Parameters
Name | Type |
---|---|
self |
get_note_type_id
get_note_type_id();
Takes no parameters.
set_header
set_header(&mut self, header);
Parameters
Name | Type |
---|---|
&mut self | |
header | NoteHeader |
get_header
get_header(self);
Parameters
Name | Type |
---|---|
self |
compute_note_hash
compute_note_hash(self);
Parameters
Name | Type |
---|---|
self |