aztec-nr - noir_aztec::note::utils

Function compute_note_hash_for_nullification

pub fn compute_note_hash_for_nullification<Note>(
    retrieved_note: RetrievedNote<Note>,
    storage_slot: Field,
) -> Field
where Note: NoteHash

Returns the note hash that must be used to compute a note's nullifier when calling NoteHash::compute_nullifier or NoteHash::compute_nullifier_unconstrained.