diff options
| author | Kamen Mladenov <kamen@syndamia.com> | 2025-02-03 14:52:56 +0200 |
|---|---|---|
| committer | Kamen Mladenov <kamen@syndamia.com> | 2025-02-03 14:52:56 +0200 |
| commit | 0e2db3d20ccae2090f4a01d172e451c596da0c30 (patch) | |
| tree | 95acbc2c53f35d8cd932433db0bce9003a86538f /zkvms_host_io/src/lib.rs | |
| parent | 729c6075045a224724e6b2da6e57721b5d48ab12 (diff) | |
| download | zkVMs-benchmarks-0e2db3d20ccae2090f4a01d172e451c596da0c30.tar zkVMs-benchmarks-0e2db3d20ccae2090f4a01d172e451c596da0c30.tar.gz zkVMs-benchmarks-0e2db3d20ccae2090f4a01d172e451c596da0c30.zip | |
feat(zkvms_host_io): Add public_inputs and private_inputs attributes to RunWith
Diffstat (limited to 'zkvms_host_io/src/lib.rs')
| -rw-r--r-- | zkvms_host_io/src/lib.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/zkvms_host_io/src/lib.rs b/zkvms_host_io/src/lib.rs index d63cb56..2624352 100644 --- a/zkvms_host_io/src/lib.rs +++ b/zkvms_host_io/src/lib.rs @@ -31,6 +31,8 @@ pub enum RunType { pub struct RunWith { pub run_type: RunType, pub input: Input, + pub public_input: PublicInput, + pub private_input: PrivateInput, pub default_env: HashMap<String, String>, } @@ -66,13 +68,17 @@ pub fn read_args() -> RunWith { } else { DEFAULT_PRIVATE_INPUT.to_string() }; - let input: Input = toml::from_str(&(public_contents + &private_contents)).unwrap(); + let input: Input = toml::from_str(&(public_contents.clone() + &private_contents)).unwrap(); + let public_input: PublicInput = toml::from_str(&public_contents).unwrap(); + let private_input: PrivateInput = toml::from_str(&private_contents).unwrap(); let default_env = read_str(DEFAULT_ENV).unwrap(); RunWith { run_type: cli.run_type, input, + public_input, + private_input, default_env, } } |
