Skip to content

Commit 7774c88

Browse files
committed
chore: rebuild sp1 elf to include .pub and .vk files
1 parent c8a7d96 commit 7774c88

5 files changed

Lines changed: 12 additions & 1 deletion

File tree

scripts/test_files/sp1/fibonacci_proof_generator/script/src/main.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use sp1_sdk::{include_elf, utils, ProverClient, SP1Stdin};
1+
use sp1_sdk::{include_elf, utils, HashableKey, ProverClient, SP1Stdin};
22
use std::io::Write;
33

44
/// The ELF we want to execute inside the zkVM.
@@ -36,6 +36,15 @@ fn main() {
3636
// Save the proof.
3737
let proof_file_path = "../../sp1_fibonacci_4_1_3.proof";
3838
proof.save(proof_file_path).expect("saving proof failed");
39+
40+
std::fs::write("../../sp1_fibonacci_4_1_3.pub", proof.public_values)
41+
.expect("failed to save public inputs");
42+
43+
println!("BYTES {:?}", vk.hash_bytes());
44+
45+
std::fs::write("../../sp1_fibonacci_4_1_3.vk", vk.hash_bytes())
46+
.expect("failed to save vk hash");
47+
3948
let elf_file_path = "../../sp1_fibonacci_4_1_3.elf";
4049
let mut file = std::fs::File::create(elf_file_path).unwrap();
4150
file.write_all(ELF).unwrap();
10.8 KB
Binary file not shown.
0 Bytes
Binary file not shown.
12 Bytes
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
+=�EYJ:!�(D��C�� �
2+
2]���p}�

0 commit comments

Comments
 (0)