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

feat(prover): WG refactoring #3 #2942

Merged
merged 8 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions prover/crates/bin/witness_generator/src/artifacts.rs
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
use std::time::Instant;
use std::{sync::Arc, time::Instant};

use async_trait::async_trait;
use zksync_object_store::ObjectStore;
use zksync_prover_dal::{ConnectionPool, Prover};

#[derive(Debug)]
pub(crate) struct AggregationBlobUrls {
pub struct AggregationBlobUrls {
pub aggregation_urls: String,
pub circuit_ids_and_urls: Vec<(u8, String)>,
}

#[async_trait]
pub(crate) trait ArtifactsManager {
pub trait ArtifactsManager {
type InputMetadata;
type InputArtifacts;
type OutputArtifacts;
type OutputArtifacts: Send + Clone + 'static;
type BlobUrls;

async fn get_artifacts(
Expand All @@ -26,6 +26,8 @@ pub(crate) trait ArtifactsManager {
job_id: u32,
artifacts: Self::OutputArtifacts,
object_store: &dyn ObjectStore,
shall_save_to_public_bucket: bool,
public_blob_store: Option<Arc<dyn ObjectStore>>,
) -> Self::BlobUrls;

async fn save_to_database(
Expand Down

This file was deleted.

This file was deleted.

Loading
Loading