Skip to main content

utils

Standalone Functions

compute_inner_note_hash

compute_inner_note_hash(note);

Parameters

NameType
noteNote

compute_siloed_nullifier

compute_siloed_nullifier(note_with_header, context);

Parameters

NameType
note_with_headerNote
context&mut PrivateContext

compute_note_hash_for_read_request_from_innter_and_nonce

compute_note_hash_for_read_request_from_innter_and_nonce(inner_note_hash, nonce);

Parameters

NameType
inner_note_hashField
nonceField

compute_note_hash_for_read_request

compute_note_hash_for_read_request(note);

Parameters

NameType
noteNote

compute_note_hash_for_consumption

compute_note_hash_for_consumption(note);

Parameters

NameType
noteNote

compute_note_hash_and_optionally_a_nullifier

compute_note_hash_and_optionally_a_nullifier(deserialize_content);

Parameters

NameType
deserialize_contentfn([Field; N]