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

feat(nargo): print-acir command #1031

Merged
merged 1 commit into from
Mar 23, 2023
Merged

feat(nargo): print-acir command #1031

merged 1 commit into from
Mar 23, 2023

Conversation

joss-aztec
Copy link
Contributor

@joss-aztec joss-aztec commented Mar 23, 2023

Related issue(s)

Resolves #1030

Description

Summary of changes

Adds the ability to print a compiled circuit to stdout such that the ACIR can be inspected.

aztec@Aztecs-MBP pedersen % nargo print-acir
current witness index : 6
public input indices : [2, 4]
EXPR [ (1, _1) (2, _2) (-1, _3) 0 ]
BLACKBOX::PEDERSEN [(_1, num_bits: 254), (_2, num_bits: 254), (_3, num_bits: 254)] [ _4, _5]

Checklist

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt with default settings.
  • I have linked this PR to the issue(s) that it resolves.
  • I have reviewed the changes on GitHub, line by line.
  • I have ensured all changes are covered in the description.

Documentation needs

  • This PR requires documentation updates when merged.

It's a new feature that could be made known to devs as it's very useful for education.

@joss-aztec joss-aztec changed the title feat(nargo) print-acir command feat(nargo): print-acir command Mar 23, 2023
Copy link
Contributor

@jfecher jfecher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fairly straightforward

@joss-aztec joss-aztec added this pull request to the merge queue Mar 23, 2023
Merged via the queue into master with commit 408d9c0 Mar 23, 2023
@joss-aztec joss-aztec deleted the joss/print-acir branch March 23, 2023 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nargo print ACIR cmd
3 participants