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): add flag to verify created proofs #737

Merged
merged 9 commits into from
Feb 14, 2023
Merged

Conversation

TomAFrench
Copy link
Member

Related issue(s)

Resolves #719

Description

Draft while waiting for #725 to be merged

Summary of changes

This PR adds a --checked flag to nargo prove which immediately verifies the proof after generation. Most of the changes in this PR are to change to have I/O being done explicitly rather than implicitly through execute_program to avoid having to write to/read from the toml files unnecessarily.

Dependency additions / changes

N/A

Test additions / changes

Integration tests now make use of this flag rather than calling verify_with_path.

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.

Additional context

@TomAFrench TomAFrench force-pushed the checked-prove branch 2 times, most recently from 8ecfda2 to bb48024 Compare February 3, 2023 23:31
Base automatically changed from nargo-execute to master February 4, 2023 01:09
@TomAFrench TomAFrench marked this pull request as ready for review February 6, 2023 12:21
crates/nargo/src/cli/mod.rs Outdated Show resolved Hide resolved
crates/nargo/src/cli/prove_cmd.rs Outdated Show resolved Hide resolved
@jfecher
Copy link
Contributor

jfecher commented Feb 13, 2023

Looks good, I'll approve once merge conflicts are fixed

* master: (28 commits)
  chore(ci): Add release token to enable runs against release PR (#840)
  feat(ssa): array sort (#754)
  chore: update readme (#811)
  chore: fix clippy (#825)
  chore: remove stale comment on HirFunction.unchecked_from_expr (#827)
  chore: Getter naming refactor (#803)
  chore: updated "HirFunction::unsafe_from_expr" to "HirFunction::unchecked_from_expr" (#823)
  chore: Forbid unsafe code (#824)
  chore: Follow rust naming convention (#801)
  feat(ci): Add concurrency group for rust workflow (#806)
  chore(ssa): rename impl method to follow Rust guideline (#782)
  fix(nargo): `nargo test` now only runs test functions defined in the current module (#805)
  chore(nargo): Remove outdated error message when Prover/Verifier.toml is missing (#807)
  chore(ssa): rename codegen to ssa_gen + reorg of `Value` struct (#797)
  chore(nargo): abstract paths from nargo's working directory (#761)
  chore(ci): Rename workflows (#804)
  feat: Impls with generics (#798)
  chore(ssa): Add doc comments on `Opcode` struct (#778)
  fix: operators issuing type errors when used with matching integer types arising from generic code (#789)
  chore(nargo)!: bump MSRV to 1.66.0 (#799)
  ...
@kevaundray kevaundray added this pull request to the merge queue Feb 14, 2023
Merged via the queue into master with commit e981c7c Feb 14, 2023
@kevaundray kevaundray deleted the checked-prove branch February 14, 2023 13:57
TomAFrench added a commit that referenced this pull request Feb 14, 2023
* master:
  feat(nargo): add flag to verify created proofs (#737)
  chore: Add display for binaryop (#839)
  chore(ssa): per array memory map (#832)
  chore: remove unwanted print of Ok(<path>) in nargo compile (#843)
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.

Add nargo command to both prove and verify
3 participants