aztec-nr - noir_aztec::note::retrieved_note

Struct RetrievedNote

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

A container of a note and the metadata required to prove its existence, regardless of whether the note is pending (created in the current transaction) or settled (created in a previous transaction).

Fields

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

Trait implementations

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

pub fn deserialize( serialized: [Field; <(resolved type) as Deserialize>::N + 4], ) -> Self

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

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

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

pub fn pack(self) -> [Field; <(resolved type) as Packable>::N + 4] pub fn unpack(packed: [Field; <(resolved type) as Packable>::N + 4]) -> Self

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

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