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

tools: misc improvements #83

Merged
merged 10 commits into from
Feb 23, 2024
Merged

tools: misc improvements #83

merged 10 commits into from
Feb 23, 2024

Conversation

slumber
Copy link
Contributor

@slumber slumber commented Feb 22, 2024

  • NEXUS_CACHE environment variable for caching generated public parameters. Defaults to <crate root>/target/nexus-cache. For instance, one can do
export NEXUS_CACHE=/tmp/nexus
cargo nexus prove
cargo nexus verify
  • Can save and verify sequential proofs
  • Parameters are defaulted to seq with k=16. Bigger k makes parameters loading to take significant amount of time, k=64 is 2min+ on my machine. Can be configured with both -k=<k> --impl=<seq/par> or env variables
export NEXUS_VM_K=32
export NEXUS_VM_NOVAIMPL=par
cargo nexus prove
cargo nexus verify

Priority is defaults < envs < cli

  • Introduce --profile option instead of --release flag, which defaults to "release". To run in debug
cargo nexus prove --profile=dev # release or any other custom profile

see https://doc.rust-lang.org/cargo/reference/profiles.html

@slumber
Copy link
Contributor Author

slumber commented Feb 23, 2024

@govereau see 310aef2 for clarifying the discussion #77 (comment)

@slumber slumber merged commit a0410e2 into main Feb 23, 2024
4 checks passed
@slumber slumber deleted the slumber-params-cache branch February 23, 2024 17:53
sjudson pushed a commit that referenced this pull request Feb 5, 2025
* add readme

* clippy

* rename folder

* add test cfg

* fix
sjudson pushed a commit that referenced this pull request Feb 12, 2025
* add readme

* clippy

* rename folder

* add test cfg

* fix
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.

2 participants