Skip to main content
Version: v0.85.0

DiscoveredNoteInfo

/ A struct with the discovered information of a complete note, required for delivery to PXE. Note that this is not / the complete note information, since it does not include content, storage slot, etc.

Fields

FieldType
pub nonceField
pub note_hashField
pub inner_nullifierField

NoteAndData

Fields

FieldType
noteMockNote
nonceField
note_hashField
unique_note_hashField
inner_nullifierField

Standalone Functions

attempt_note_nonce_discovery

attempt_note_nonce_discovery(unique_note_hashes_in_tx, MAX_NOTE_HASHES_PER_TX>, first_nullifier_in_tx, compute_note_hash_and_nullifier, contract_address, storage_slot, note_type_id, packed_note, MAX_NOTE_PACKED_LEN>, );

Parameters

NameType
unique_note_hashes_in_txBoundedVec<Field
MAX_NOTE_HASHES_PER_TX>
first_nullifier_in_txField
compute_note_hash_and_nullifierComputeNoteHashAndNullifier<Env>
contract_addressAztecAddress
storage_slotField
note_type_idField
packed_noteBoundedVec<Field
MAX_NOTE_PACKED_LEN>

compute_note_hash_and_nullifier

compute_note_hash_and_nullifier(packed_note, MAX_NOTE_PACKED_LEN>, storage_slot, note_type_id, contract_address, nonce, );

Parameters

NameType
packed_noteBoundedVec<Field
MAX_NOTE_PACKED_LEN>
storage_slotField
note_type_idField
contract_addressAztecAddress
nonceField

no_note_hashes

no_note_hashes();

Takes no parameters.

failed_hash_computation

failed_hash_computation();

Takes no parameters.

construct_note

construct_note(value, note_index_in_tx);

Parameters

NameType
valueField
note_index_in_txu32

single_note

single_note();

Takes no parameters.

multiple_notes_same_preimage

multiple_notes_same_preimage();

Takes no parameters.