Function compute_note_nullifier
pub fn compute_note_nullifier<let N: u32>(
note_hash_for_nullification: Field,
data: [Field; N],
) -> Field
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_nullificationof the note (usually returned bycompute_confirmed_note_hash_for_nullification), plus any arbitrary notedata. 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.