aztec-nr - noir_aztec::note::note_metadata

Struct PendingPreviousPhaseNoteMetadata

pub struct PendingPreviousPhaseNoteMetadata
{ /* 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 pending previous phase note, i.e. a note that was created in the transaction that is currently being executed, during the previous execution phase. Because there are only two phases and their order is always the same (first non-revertible and then revertible) this implies that the note was created in the non-revertible phase, and that the current phase is the revertible phase.

Implementations

impl PendingPreviousPhaseNoteMetadata

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