aztec-nr - noir_aztec::note::utils

Function compute_note_nullifier

pub fn compute_note_nullifier<let N: u32>(
    note_hash_for_nullification: Field,
    data: [Field; N],
) -> Field

Computes a domain-separated note nullifier.

Receives the note_hash_for_nullification of the note (usually returned by compute_confirmed_note_hash_for_nullification), plus any arbitrary note data. This typically includes secrets, such as the app-siloed nullifier hiding key of the note's owner.

Usage of this function guarantees that different state variables will never produce colliding note nullifiers, even if their underlying notes have different implementations.