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_inclusion::ProveNoteInclusion::prove_note_inclusion.

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( serialized: [Field; <(resolved type) as Deserialize>::N + 6], ) -> 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; <(resolved type) as Packable>::N + 6] pub fn unpack(packed: [Field; <(resolved type) as Packable>::N + 6]) -> Self

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

pub fn serialize(self) -> [Field; <(resolved type) as Serialize>::N + 6]