MockNote
Fields
Field | Type |
---|---|
header | NoteHeader |
value | Field |
Methods
new
MockNote::new(value);
Parameters
Name | Type |
---|---|
value | Field |
MockNoteBuilder
Fields
Field | Type |
---|---|
value | Field |
contract_address | Option<AztecAddress> |
storage_slot | Option<Field> |
Methods
new
MockNoteBuilder::new(value);
Parameters
Name | Type |
---|---|
value | Field |
contract_address
MockNoteBuilder::contract_address(&mut self, contract_address);
Parameters
Name | Type |
---|---|
&mut self | |
contract_address | AztecAddress |
storage_slot
MockNoteBuilder::storage_slot(&mut self, storage_slot);
Parameters
Name | Type |
---|---|
&mut self | |
storage_slot | Field |
build
MockNoteBuilder::build(self);
Parameters
Name | Type |
---|---|
self |
Standalone Functions
serialize_content
serialize_content(self);
Parameters
Name | Type |
---|---|
self |
deserialize_content
deserialize_content(fields);
Parameters
Name | Type |
---|---|
fields | [Field; MOCK_NOTE_LENGTH] |
compute_note_content_hash
compute_note_content_hash(self);
Parameters
Name | Type |
---|---|
self |
get_header
get_header(self);
Parameters
Name | Type |
---|---|
self |
set_header
set_header(&mut self, header);
Parameters
Name | Type |
---|---|
&mut self | |
header | NoteHeader |
get_note_type_id
get_note_type_id();
Takes no parameters.
compute_note_hash_and_nullifier
compute_note_hash_and_nullifier(self, _context);
Parameters
Name | Type |
---|---|
self | |
_context | &mut PrivateContext |
compute_note_hash_and_nullifier_without_context
compute_note_hash_and_nullifier_without_context(self);
Parameters
Name | Type |
---|---|
self |
to_be_bytes
to_be_bytes(self, storage_slot);
Parameters
Name | Type |
---|---|
self | |
storage_slot | Field |
eq
eq(self, other);
Parameters
Name | Type |
---|---|
self | |
other | Self |