zkVM takes opaque input (#173)

This commit is contained in:
Han
2025-10-18 11:04:35 +08:00
committed by GitHub
parent 7bd1789a31
commit 577f97165e
76 changed files with 851 additions and 1528 deletions

View File

@@ -7,7 +7,7 @@ license.workspace = true
[dependencies]
anyhow.workspace = true
bincode.workspace = true
bincode = { workspace = true, features = ["std", "serde"] }
clap = { workspace = true, features = ["derive"] }
serde.workspace = true
tracing-subscriber = { workspace = true, features = ["env-filter"] }

View File

@@ -42,8 +42,9 @@ fn main() -> Result<(), Error> {
let program = compile(args.guest_path)?;
let output = File::create(args.output_path).with_context(|| "Failed to create output")?;
bincode::serialize_into(output, &program).with_context(|| "Failed to serialize program")?;
let mut output = File::create(args.output_path).with_context(|| "Failed to create output")?;
bincode::serde::encode_into_std_write(&program, &mut output, bincode::config::legacy())
.with_context(|| "Failed to serialize program")?;
Ok(())
}