Skip to main content

MockNote

Fields

FieldType
headerNoteHeader
valueField

Methods

new

MockNote::new(value);

Parameters

NameType
valueField

MockNoteBuilder

Fields

FieldType
valueField
contract_addressOption<AztecAddress>
storage_slotOption<Field>

Methods

new

MockNoteBuilder::new(value);

Parameters

NameType
valueField

contract_address

MockNoteBuilder::contract_address(&mut self, contract_address);

Parameters

NameType
&mut self
contract_addressAztecAddress

storage_slot

MockNoteBuilder::storage_slot(&mut self, storage_slot);

Parameters

NameType
&mut self
storage_slotField

build

MockNoteBuilder::build(self);

Parameters

NameType
self

Standalone Functions

serialize_content

serialize_content(self);

Parameters

NameType
self

deserialize_content

deserialize_content(fields);

Parameters

NameType
fields[Field; MOCK_NOTE_LENGTH]

compute_note_content_hash

compute_note_content_hash(self);

Parameters

NameType
self

get_header

get_header(self);

Parameters

NameType
self

set_header

set_header(&mut self, header);

Parameters

NameType
&mut self
headerNoteHeader

get_note_type_id

get_note_type_id();

Takes no parameters.

compute_nullifier

compute_nullifier(self, _context);

Parameters

NameType
self
_context&mut PrivateContext

compute_nullifier_without_context

compute_nullifier_without_context(self);

Parameters

NameType
self

broadcast

broadcast(self, context, slot, ovpk_m, ivpk_m);

Parameters

NameType
self
context&mut PrivateContext
slotField
ovpk_mGrumpkinPoint
ivpk_mGrumpkinPoint

to_be_bytes

to_be_bytes(self, storage_slot);

Parameters

NameType
self
storage_slotField

eq

eq(self, other);

Parameters

NameType
self
otherSelf