Skip to main content

mod

Standalone Functions

compute_note_type_id

compute_note_type_id(name);

Parameters

NameType
nameQuoted

generate_note_interface

generate_note_interface(s, note_type_id, hiding_point_name, indexed_fixed_fields, Type, u32);

Parameters

NameType
sStructDefinition
note_type_idField
hiding_point_nameQuoted
indexed_fixed_fields[(Quoted
Type
u32

to_be_bytes

to_be_bytes(self, storage_slot);

Parameters

NameType
self
storage_slotField

deserialize_content

deserialize_content(value);

Parameters

NameType
value[Field; $content_len]

serialize_content

serialize_content(self);

Parameters

NameType
self

get_note_type_id

get_note_type_id();

Takes no parameters.

set_header

set_header(&mut self, header);

Parameters

NameType
&mut self
header$NOTE_HEADER_TYPE

get_header

get_header(self);

Parameters

NameType
self

compute_note_hash

compute_note_hash(self);

Parameters

NameType
self

generate_note_properties

generate_note_properties(s);

Parameters

NameType
sStructDefinition

properties

properties();

Takes no parameters.

generate_note_export

generate_note_export(s, note_type_id);

Parameters

NameType
sStructDefinition
note_type_idField

generate_multi_scalar_mul

generate_multi_scalar_mul(indexed_fields, Type, u32);

Parameters

NameType
indexed_fields[(Quoted
Type
u32

generate_note_hiding_point

generate_note_hiding_point(s, indexed_fixed_fields, Type, u32);

Parameters

NameType
sStructDefinition
indexed_fixed_fields[(Quoted
Type
u32

new

new($new_args);

Parameters

NameType
$new_args

from_point

from_point(mut self, point);

Parameters

NameType
mut self
pointaztec

finalize

finalize($finalize_args);

Parameters

NameType
$finalize_args

serialize

serialize(self);

Parameters

NameType
self

deserialize

deserialize(serialized);

Parameters

NameType
serialized[Field; aztec

empty

empty();

Takes no parameters.

eq

eq(self, other);

Parameters

NameType
self
otherSelf

generate_partial_note_impl

generate_partial_note_impl(s, hiding_point_name);

Parameters

NameType
sStructDefinition
hiding_point_nameQuoted

hiding_point

hiding_point();

Takes no parameters.

register_note

register_note(note, note_serialized_len, note_type_id);

Parameters

NameType
noteStructDefinition
note_serialized_lenu32
note_type_idField

index_note_fields

index_note_fields(s, nullable_fields);

Parameters

NameType
sStructDefinition
nullable_fields[Quoted]

common_note_annotation

common_note_annotation(s);

Parameters

NameType
sStructDefinition

partial_note

partial_note(s, nullable_fields);

Parameters

NameType
sStructDefinition
nullable_fields[Quoted]

note

note(s);

Parameters

NameType
sStructDefinition

note_custom_interface

note_custom_interface(s);

Parameters

NameType
sStructDefinition