Skip to main content

lifecycle

Standalone Functions

create_note

create_note(context, storage_slot, note);

Parameters

NameType
context&mut PrivateContext
storage_slotField
note&mut Note

create_note_hash_from_public

create_note_hash_from_public(context, storage_slot, note);

Parameters

NameType
context&mut PublicContext
storage_slotField
note&mut Note

destroy_note

destroy_note(context, note);

Note: This function is currently totally unused.

Parameters

NameType
context&mut PrivateContext
noteNote

destroy_note_unsafe

destroy_note_unsafe(context, note, note_hash_for_read_request);

Parameters

NameType
context&mut PrivateContext
noteNote
note_hash_for_read_requestField