> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Function compute_confirmed_note_hash_for_nullification

Module: `noir_aztec::note::utils`

```rust
pub fn compute_confirmed_note_hash_for_nullification<Note>(
    confirmed_note: ConfirmedNote<Note>,
) -> Field
```

Returns the note hash to use when computing its nullifier.

The `note_hash_for_nullification` parameter [`NoteHash::compute_nullifier`](/aztec-nr-api/v6.0.0/noir_aztec/note/note_interface/trait.NoteHash.md#compute_nullifier) takes depends on the note's stage, e.g. settled notes use the unique note hash, but pending notes cannot as they have no nonce. This function returns the correct note hash to use.

Use [`compute_note_hash_for_nullification`](/aztec-nr-api/v6.0.0/noir_aztec/note/utils/fn.compute_note_hash_for_nullification.md) when computing this value in unconstrained functions.
