-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: default exe and app_config path in CLI (#1056)
- Loading branch information
1 parent
6c0c0e2
commit 689e171
Showing
25 changed files
with
153 additions
and
144 deletions.
There are no files selected for viewing
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
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
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
5 changes: 0 additions & 5 deletions
5
crates/cli/example/app_config.toml → crates/cli/example/openvm.toml
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,8 +1,3 @@ | ||
[app_fri_params] | ||
log_blowup = 2 | ||
num_queries = 42 | ||
proof_of_work_bits = 16 | ||
|
||
[app_vm_config.rv32i] | ||
[app_vm_config.rv32m] | ||
range_tuple_checker_sizes = [256, 2048] |
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
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,10 +1,29 @@ | ||
use openvm_sdk::config::{AppConfig, SdkVmConfig}; | ||
use openvm_stark_sdk::config::FriParameters; | ||
|
||
pub const DEFAULT_MANIFEST_DIR: &str = "."; | ||
|
||
pub const DEFAULT_AGG_PK_PATH: &str = concat!(env!("HOME"), "/.openvm/agg.pk"); | ||
pub const DEFAULT_VERIFIER_PATH: &str = concat!(env!("HOME"), "/.openvm/verifier.sol"); | ||
pub const DEFAULT_PARAMS_DIR: &str = concat!(env!("HOME"), "/.openvm/params/"); | ||
|
||
pub const DEFAULT_APP_CONFIG_PATH: &str = "./openvm.toml"; | ||
pub const DEFAULT_APP_EXE_PATH: &str = "./openvm/app.vmexe"; | ||
pub const DEFAULT_APP_PK_PATH: &str = "./openvm/app.pk"; | ||
pub const DEFAULT_APP_VK_PATH: &str = "./openvm/app.vk"; | ||
pub const DEFAULT_APP_PROOF_PATH: &str = "./openvm/app.proof"; | ||
pub const DEFAULT_EVM_PROOF_PATH: &str = "./openvm/evm.proof"; | ||
|
||
pub fn default_app_config() -> AppConfig<SdkVmConfig> { | ||
AppConfig { | ||
app_fri_params: FriParameters::standard_with_100_bits_conjectured_security(2).into(), | ||
app_vm_config: SdkVmConfig::builder() | ||
.system(Default::default()) | ||
.rv32i(Default::default()) | ||
.rv32m(Default::default()) | ||
.io(Default::default()) | ||
.build(), | ||
leaf_fri_params: FriParameters::standard_with_100_bits_conjectured_security(2).into(), | ||
compiler_options: Default::default(), | ||
} | ||
} |
Oops, something went wrong.