Skip to content

Commit

Permalink
refactor: destroy_note optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jun 19, 2024
1 parent 52ce25d commit 3414bd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion noir-projects/aztec-nr/aztec/src/note/lifecycle.nr
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub fn destroy_note<Note, N, M>(
let header = note.get_header();

// A non-zero note hash counter implies that we're nullifying a transient note (i.e. one that has not yet been
// persisted in the trees and is instead if the pending new commitments array). In such a case we compute its hash
// persisted in the trees and is instead in the pending new note hashes array). In such a case we compute its hash
// to inform the kernel which note we're nullifyng so that it can find it and squash both the note and the
// nullifier. This value is unused when nullifying non transient notes - in that case the kernel simply persists
// the nullifier in the tree.
Expand Down

0 comments on commit 3414bd5

Please sign in to comment.