-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* cache params in target folder * store & verify sequential proofs * default base to seq-16 * default to release build * prohibit "debug" profile * improve pcd docs * typo * quick proof store * doc tests
- Loading branch information
Showing
28 changed files
with
337 additions
and
195 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[vm] | ||
k = 1 # number of NexusVM instructions proved per Nova folding step. | ||
nova_impl = "par" # IVC implementation to be used, should be one of "seq" (sequential), "par" (parallel). | ||
k = 16 # number of NexusVM instructions proved per Nova folding step. | ||
nova_impl = "seq" # IVC implementation to be used, should be one of "seq" (sequential), "par" (parallel). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
use std::path::PathBuf; | ||
|
||
use super::{Config, Error}; | ||
use super::Config; | ||
|
||
#[derive(serde_wrapper::Deserialize)] | ||
pub struct MiscConfig { | ||
pub cache_path: PathBuf, | ||
pub cache: PathBuf, | ||
} | ||
|
||
// NOTE: there's no base value for cache path -- cli reuse workspace target directory for simplicity. | ||
// | ||
// Subject to change. | ||
impl Config for MiscConfig { | ||
const PREFIX: &'static str = "MISC"; | ||
const PREFIX: &'static str = ""; | ||
} | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
use super::*; | ||
|
||
#[test] | ||
fn read_config() { | ||
std::env::set_var("NEXUS_CACHE", "/dev/null"); | ||
|
||
fn from_env() -> Result<Self, Error> { | ||
// NOTE: non-configurable -- hardcoded to reuse workspace target directory for simplicity. | ||
// | ||
// Subject to change. | ||
let manifest_path: PathBuf = env!("CARGO_MANIFEST_DIR").into(); | ||
let cache_path = manifest_path | ||
.parent() | ||
.expect("parent directory not found") | ||
.join("target/nexus-cache"); | ||
Ok(Self { cache_path }) | ||
<MiscConfig as Config>::from_env().unwrap(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.