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!: Switch to aztec_backend that uses upstream BB & UltraPlonk #1114

Merged
merged 57 commits into from
Apr 21, 2023

Conversation

phated
Copy link
Contributor

@phated phated commented Apr 6, 2023

Related issue(s)

Resolves #991
Resolves #1001
Resolves #1105
Resolves #1115

Description

This updates the aztec_backend dependencies to the latest commit, which has started depending on upstream barretenberg and switches to UltraPlonk.

Since BB has a lot of dependencies to be built, @kobyhallx and I have added a Nix flake to the repository to manage this dependency.

I've updated the workflows to use Nix to run clippy and cargo tests.

This is currently a draft because more work needs to be done to update values in the tests, and it seems that there is a CRS bug in BB because we are getting a panic when trying to run the prove_and_verify tests. Will need to work with @vezenovm and @kevaundray to sort that out.

Summary of changes

Dependency additions / changes

Test additions / changes

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.

Additional context

Docs updates:

  1. We compile to ultra plonk now
  2. Building from source drastically changed (follow up work is to make nix profile install ... to install nargo globally)

cspell.json Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
cspell.json Outdated Show resolved Hide resolved
TomAFrench
TomAFrench previously approved these changes Apr 21, 2023
Copy link
Member

@TomAFrench TomAFrench left a comment

Choose a reason for hiding this comment

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

Everything looks good to me. Tested everything seems to work.

vezenovm
vezenovm previously approved these changes Apr 21, 2023
Copy link
Contributor

@vezenovm vezenovm left a comment

Choose a reason for hiding this comment

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

Some minor comments

flake.nix Show resolved Hide resolved
flake.nix Outdated Show resolved Hide resolved
flake.nix Outdated Show resolved Hide resolved
kevaundray
kevaundray previously approved these changes Apr 21, 2023
@phated phated dismissed stale reviews from kevaundray, vezenovm, and TomAFrench via ab9e8c3 April 21, 2023 18:00
@kevaundray kevaundray self-requested a review April 21, 2023 18:02
@phated phated added this pull request to the merge queue Apr 21, 2023
Merged via the queue into master with commit f14fe0b Apr 21, 2023
@phated phated deleted the phated/nix-ultra branch April 21, 2023 19:54
TomAFrench added a commit that referenced this pull request Apr 24, 2023
* master:
  chore: update flake version to match current release (#1204)
  feat!: Switch to aztec_backend that uses upstream BB & UltraPlonk (#1114)
  chore(ssa refactor): Add Context structs and start ssa gen pass (#1196)
  chore(ssa): Replace JmpIf with BrIf (#1193)
  chore(noir): Release 0.4.1 (#1164)
  chore(ssa refactor): Add DenseMap and SparseMap types (#1184)
  feat: bump noir-source-resolver version (#1182)
  chore(deps): bump h2 from 0.3.16 to 0.3.18 (#1186)
  fix(nargo): restore `nargo codegen-verifier` functionality (#1185)
  chore: simplify setup code in `noir_integration` test (#1180)
  feat: Add Poseidon-BN254 hash functions (#1176)
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.

Upgrade acvm to v0.9.0 Nix Nargo Builds Epic: Upgrade to the UltraPlonk Version of Aztec Backend
5 participants