For the complete documentation index, see llms.txt.
aztec-nr - noir_aztec::note

Struct HintedNote

pub struct HintedNote<Note> {
    pub note: Note,
    pub contract_address: AztecAddress,
    pub owner: AztecAddress,
    pub randomness: Field,
    pub storage_slot: Field,
    pub metadata: NoteMetadata,
}

A hint for a note that might exist.

This contains the actual note content and all metadata that is required in order to prove note's existence, regardless of whether the note is pending or settled (see crate::note::note_metadata::NoteMetadata).

This value typically unconstrained (originating from oracles or as a contract function parameter), and can be converted into a crate::note::confirmed_note::ConfirmedNote via crate::history::note::assert_note_existed_by.

Fields

note: Note
contract_address: AztecAddress
randomness: Field
storage_slot: Field
metadata: NoteMetadata

Trait implementations

impl<Note> Deserialize for HintedNote<Note>
where Note: Deserialize

pub fn deserialize( fields: [Field; <Note as protocol_types::traits::Deserialize>::N + 6], ) -> Self pub fn stream_deserialize<let K: u32>(reader: &mut Reader<K>) -> Self

impl<Note> Eq for HintedNote<Note>
where Note: Eq

pub fn eq(_self: Self, _other: Self) -> bool

impl<Note> Packable for HintedNote<Note>
where Note: Packable

pub fn pack(self) -> [Field; <Note as protocol_types::traits::Packable>::N + 6] pub fn unpack( packed: [Field; <Note as protocol_types::traits::Packable>::N + 6], ) -> Self

impl<Note> Serialize for HintedNote<Note>
where Note: Serialize

pub fn serialize(self) -> [Field; <Note as protocol_types::traits::Serialize>::N + 6] pub fn stream_serialize<let K: u32>(self, writer: &mut Writer<K>)