aztec-nr - noir_aztec::note::note_metadata

Struct SettledNoteMetadata

pub struct SettledNoteMetadata
{ /* private fields */ }

The metadata required to both prove a note's existence and destroy it, by computing the correct note hash for kernel read requests, as well as the correct nullifier to avoid double-spends.

This represents a settled note, i.e. a note that was created in a prior transaction and is therefore already in the note hash tree.

Implementations

impl SettledNoteMetadata

pub fn new(note_nonce: Field) -> Self pub fn note_nonce(self) -> Field