Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contract gate info reporting tool #6190

Open
vezenovm opened this issue May 3, 2024 · 1 comment
Open

Contract gate info reporting tool #6190

vezenovm opened this issue May 3, 2024 · 1 comment
Labels
A-ux/devex Area: relates to external ux / devex. (Users typically are devs) (See also A-internal-devex) T-feature-request Type: Adding a brand new feature (not to be confused with improving an existing feature).

Comments

@vezenovm
Copy link
Contributor

vezenovm commented May 3, 2024

As per (noir-lang/noir#4962) we will be removing nargo info as nargo moves away from all backend specific operations. We will now expect bb to take in an ACIR Program (collection of multiple ACIR circuits) and spit out a JSON gates report (#6168). However, bb does not know about contracts and arguably should not know about them (it should not matter to bb how an ACIR program was generated).

We need some tool as part of aztec's developer suite that allows developers to fetch gate information on their contract using the new bb info command. A new tool will be best imo as gate counts are only really relevant for private functions as public functions work in an entirely different execution paradigm. Perhaps some sort of general tool that generates "gas" reports that distinguishes between public/private functions will be most beneficial for devs.

@vezenovm vezenovm added T-feature-request Type: Adding a brand new feature (not to be confused with improving an existing feature). A-ux/devex Area: relates to external ux / devex. (Users typically are devs) (See also A-internal-devex) labels May 3, 2024
@github-project-automation github-project-automation bot moved this to Todo in A3 May 3, 2024
@Savio-Sou
Copy link
Member

Savio-Sou commented May 17, 2024

We now have a bash script for gathering the constraint counts: https://github.com/AztecProtocol/aztec-packages/blob/e28f1991e130bf1aab41778d91be5c110f2eebdf/noir-projects/gates_report.sh

Next steps for full closure of this Issue:

  • Document the use of the script
  • Anything else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ux/devex Area: relates to external ux / devex. (Users typically are devs) (See also A-internal-devex) T-feature-request Type: Adding a brand new feature (not to be confused with improving an existing feature).
Projects
Status: Todo
Development

No branches or pull requests

2 participants