Skip to content

Commit

Permalink
from env
Browse files Browse the repository at this point in the history
  • Loading branch information
jtguibas committed Dec 19, 2024
1 parent c3ecc72 commit 7aab122
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
10 changes: 1 addition & 9 deletions examples/fibonacci/script/bin/groth16_bn254.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<<<<<<< HEAD
use sp1_sdk::{include_elf, utils, HashableKey, ProverClient, SP1Stdin};
=======
use sp1_sdk::{utils, HashableKey, ProverClient, SP1Stdin};
>>>>>>> origin/main

/// The ELF we want to execute inside the zkVM.
const ELF: &[u8] = include_elf!("fibonacci-program");
Expand All @@ -18,11 +14,7 @@ fn main() {
stdin.write(&n);

// Set up the pk and vk.
<<<<<<< HEAD
let client = ProverClient::env();
=======
let client = ProverClient::new();
>>>>>>> origin/main
let client = ProverClient::from_env();
let (pk, vk) = client.setup(ELF);
println!("vk: {:?}", vk.bytes32());

Expand Down
13 changes: 1 addition & 12 deletions examples/fibonacci/script/bin/plonk_bn254.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
<<<<<<< HEAD
use sp1_sdk::{include_elf, utils, HashableKey, ProverClient, SP1Stdin};

/// The ELF we want to execute inside the zkVM.
const ELF: &[u8] = include_elf!("fibonacci-program");
=======
use sp1_sdk::{utils, HashableKey, ProverClient, SP1Stdin};

/// The ELF we want to execute inside the zkVM.
const ELF: &[u8] = include_bytes!("../../program/elf/riscv32im-succinct-zkvm-elf");
>>>>>>> origin/main

fn main() {
// Setup logging.
Expand All @@ -21,11 +14,7 @@ fn main() {
stdin.write(&n);

// Set up the pk and vk.
<<<<<<< HEAD
let client = ProverClient::env();
=======
let client = ProverClient::new();
>>>>>>> origin/main
let client = ProverClient::from_env();
let (pk, vk) = client.setup(ELF);
println!("vk: {:?}", vk.bytes32());

Expand Down

0 comments on commit 7aab122

Please sign in to comment.