Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use remote batch prover #716

Open
SantiagoPittella opened this issue Feb 21, 2025 · 0 comments
Open

Use remote batch prover #716

SantiagoPittella opened this issue Feb 21, 2025 · 0 comments
Assignees
Labels
block-producer Related to the block producer component
Milestone

Comments

@SantiagoPittella
Copy link
Collaborator

SantiagoPittella commented Feb 21, 2025

Add support for both local and remote proving for batches.

As a first iteration, we are going to use a enum that holds the prover type in the instance, as Bobbin described in this comment

pub enum BatchProver {
    Local(LocalBatchProver),
    Remote(RemoteBatchProver),
}

impl BatchProver {

    pub fn new_local() -> Self {
        ...
    }

    pub fn new_remote(url: Url) -> Result<Self, BatchProverError> {
        ...
    }

    pub async fn prove(
        &self,
        proposed_batch: ProposedBatch,
    ) -> Result<ProvenBatch, BatchProverError> {
        ...
    }
}
@SantiagoPittella SantiagoPittella self-assigned this Feb 21, 2025
@SantiagoPittella SantiagoPittella added the block-producer Related to the block producer component label Feb 21, 2025
@SantiagoPittella SantiagoPittella added this to the v0.8 milestone Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
block-producer Related to the block producer component
Projects
None yet
Development

No branches or pull requests

1 participant