Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
fborello-lambda committed Oct 3, 2024
1 parent 9f0004e commit 6d72a38
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/l2/prover/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::net::{IpAddr, Ipv4Addr};
use tracing::info;

pub mod proof_data_client;
pub mod sp1_prover;
pub mod prover;

pub async fn start_prover() {
let proof_data_client = tokio::spawn(proof_data_client::start_proof_data_client(
Expand Down
4 changes: 2 additions & 2 deletions crates/l2/prover/proof_data_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use prover_lib::inputs::ProverInput;

use crate::operator::proof_data_provider::ProofData;

use super::sp1_prover::SP1Prover;
use super::prover::Prover;

pub async fn start_proof_data_client(ip: IpAddr, port: u16) {
let proof_data_client = ProofDataClient::new(ip, port);
Expand All @@ -30,7 +30,7 @@ impl ProofDataClient {
}

pub async fn start(&self) {
let prover = SP1Prover::new();
let prover = Prover::new();

loop {
match self.request_new_data() {
Expand Down
6 changes: 3 additions & 3 deletions crates/l2/prover/sp1_prover.rs → crates/l2/prover/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ use sp1_sdk::{ProverClient, SP1ProofWithPublicValues, SP1ProvingKey, SP1Stdin, S
/// The ELF (executable and linkable format) file for the Succinct RISC-V zkVM.
pub const FIBONACCI_ELF: &[u8] = include_bytes!("./sp1/program/elf/riscv32im-succinct-zkvm-elf");

pub struct SP1Prover {
pub struct Prover {
client: ProverClient,
pk: SP1ProvingKey,
vk: SP1VerifyingKey,
}

impl Default for SP1Prover {
impl Default for Prover {
fn default() -> Self {
Self::new()
}
}

impl SP1Prover {
impl Prover {
pub fn new() -> Self {
info!("Setting up prover...");
let client = ProverClient::new();
Expand Down

0 comments on commit 6d72a38

Please sign in to comment.