diff options
| author | Kamen Mladenov <kamen@syndamia.com> | 2025-01-28 13:19:27 +0200 |
|---|---|---|
| committer | Kamen Mladenov <kamen@syndamia.com> | 2025-01-28 13:19:27 +0200 |
| commit | 9844d088c9297d586b4b3f7ef62bee3b3a27612d (patch) | |
| tree | 3fd75fe4761322413ede44a73a7fd63db8ad1384 /zkvms/sp1/host/src/main.rs | |
| parent | d1dfdda83435a12fd67f704f153440ccd12f840c (diff) | |
| download | zkVMs-benchmarks-9844d088c9297d586b4b3f7ef62bee3b3a27612d.tar zkVMs-benchmarks-9844d088c9297d586b4b3f7ef62bee3b3a27612d.tar.gz zkVMs-benchmarks-9844d088c9297d586b4b3f7ef62bee3b3a27612d.zip | |
feat(zkvms/sp1): Adapt to new input type
Diffstat (limited to 'zkvms/sp1/host/src/main.rs')
| -rw-r--r-- | zkvms/sp1/host/src/main.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/zkvms/sp1/host/src/main.rs b/zkvms/sp1/host/src/main.rs index 28cc319..ef069fb 100644 --- a/zkvms/sp1/host/src/main.rs +++ b/zkvms/sp1/host/src/main.rs @@ -1,16 +1,14 @@ -use zkvms_host_io::{read_args, RunType::{ Execute, Prove, Verify }}; +use zkvms_host_io::{Input, foreach_input_field, read_args, RunType::{ Execute, Prove, Verify }}; use sp1_sdk::{ProverClient, EnvProver, SP1Stdin, SP1ProofWithPublicValues, SP1VerifyingKey}; /// The ELF (executable and linkable format) file for the Succinct RISC-V zkVM. pub const FIBONACCI_ELF: &[u8] = include_bytes!("./guest"); -type Input = (Vec<Vec<bool>>, u32, Vec<Vec<u32>>); - -fn build_stdin((graph, colors, coloring): &Input) -> SP1Stdin { +fn build_stdin(input: &Input) -> SP1Stdin { let mut stdin = SP1Stdin::new(); - stdin.write(&graph); - stdin.write(&colors); - stdin.write(&coloring); + foreach_input_field!{ + stdin.write(&input.yield); + } stdin } |
