From 5096034948001f5fffe4a5db5fadd684b477507c Mon Sep 17 00:00:00 2001 From: jtguibas Date: Thu, 19 Dec 2024 20:59:37 +0000 Subject: [PATCH] stdin --- crates/sdk/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/sdk/src/lib.rs b/crates/sdk/src/lib.rs index 3661d44ae..08d3ccecb 100644 --- a/crates/sdk/src/lib.rs +++ b/crates/sdk/src/lib.rs @@ -137,7 +137,7 @@ mod tests { stdin.write(&10usize); // Generate proof & verify. - let mut proof = client.prove(&pk, stdin).compressed().run().unwrap(); + let mut proof = client.prove(&pk, &stdin).compressed().run().unwrap(); client.verify(&proof, &vk).unwrap(); // Test invalid public values. @@ -157,7 +157,7 @@ mod tests { stdin.write(&10usize); // Generate proof & verify. - let mut proof = client.prove(&pk, stdin).plonk().run().unwrap(); + let mut proof = client.prove(&pk, &stdin).plonk().run().unwrap(); client.verify(&proof, &vk).unwrap(); // Test invalid public values. @@ -175,7 +175,7 @@ mod tests { let (pk, vk) = client.setup(elf); let mut stdin = SP1Stdin::new(); stdin.write(&10usize); - let proof = client.prove(&pk, stdin).plonk().run().unwrap(); + let proof = client.prove(&pk, &stdin).plonk().run().unwrap(); client.verify(&proof, &vk).unwrap(); } }