Skip to main content

note_interface

Standalone Functions

compute_note_hash_and_nullifier

compute_note_hash_and_nullifier(self, context);

Parameters

NameType
self
context&mut PrivateContext

compute_note_hash_and_nullifier_without_context

compute_note_hash_and_nullifier_without_context(self);

Parameters

NameType
self

serialize_content

serialize_content(self);

Parameters

NameType
self

deserialize_content

deserialize_content(fields);

Parameters

NameType
fields[Field; N]

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.

to_be_bytes

to_be_bytes(self, storage_slot);

Parameters

NameType
self
storage_slotField