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

Nargo should allow setting the active backend based on the directory name #2527

Closed
Tracked by #2164
TomAFrench opened this issue Sep 1, 2023 · 0 comments · Fixed by #2552
Closed
Tracked by #2164

Nargo should allow setting the active backend based on the directory name #2527

TomAFrench opened this issue Sep 1, 2023 · 0 comments · Fixed by #2552
Assignees

Comments

@TomAFrench
Copy link
Member

TomAFrench commented Sep 1, 2023

Problem

I would like to be able to select backends other than barretenberg to prove/verify against.

Happy Case

Nargo should examine the ~./.nargo/backends directory to find the list of backends which are available. Each backend shall exist in its own directory, i.e. barretenberg will live in ~./.nargo/backends/barretenberg. These names will currently be user specified when installing the backend (apart from barretenberg which will be installed by default).

Users however will not be expected to name the backend they want to use on every operation. We should instead maintain a small config file which will persist the desired backend, which the user can set in a nargo command.

Example flow

noirup

// Can get up and running with bberg immediately
nargo compile
nargo prove

// User creates a new directory with a backend  in `~/.nargo/backends/halo2`
// with a backend binary.

// Activate the new backend. 
nargo backend use halo2

// Can then carry on interacting with halo2
nargo prove
nargo verify

// Switch back to bberg
nargo backend use barretenberg

// Carry on interacting with bberg.
nargo prove
nargo verify

Alternatives Considered

Additional Context

No response

Would you like to submit a PR for this Issue?

Maybe

Support Needs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant