Skip to content

Simplify variants of compute_note_hash_and_nullif #11638

Description

@nventuro

Now that we are performing nonce discovery inside aztec-nr we have multiple places in which we need to invoke this function. Ideally we'd simply remove the top-level unconstrained compute_note_hash_and_nullif fn, have the macros inject a contract library method with the note::discovery::ComputeNoteHashAndNullifier signature and just use that everywhere. We could also delete the utility in notes/utils.nr since it just adds more calls back and forth, resulting in making it hard to follow what's going on.

This would also be a good opportunity to make sure we're not trusting the contract to perform correct siloing of note hashes and instead do it ourselves in PXE.

Activity

  1. added a commit that references this issue on Feb 21, 2025
    436def3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-aztec.nrComponent: Aztec smart contract frameworkteam-fairiesNico's team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions