-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Str-700: Preparation work for the prover CI performance metrics (#546)
* Define basic ProofReport struct and implement stub report generation in adapters and test provers. * Factor out bin/prover-client/zkvm/ into a separate crate under crates/zkvm. * Update Cargo.locks for provers/ * Minor review fixes, primarily docstrings. * Fix link after rebase.
- Loading branch information
1 parent
5a42f42
commit 5bc29bf
Showing
39 changed files
with
502 additions
and
404 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,6 @@ mod prover; | |
mod proving_ops; | ||
mod rpc_server; | ||
mod task; | ||
mod zkvm; | ||
|
||
#[tokio::main] | ||
async fn main() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[package] | ||
edition = "2021" | ||
name = "strata-zkvm-hosts" | ||
version = "0.1.0" | ||
|
||
[dependencies] | ||
# sp1 | ||
strata-sp1-adapter = { workspace = true, optional = true } | ||
strata-sp1-guest-builder = { path = "../../../provers/sp1", optional = true } | ||
|
||
# risc0 | ||
strata-risc0-adapter = { workspace = true, optional = true } | ||
strata-risc0-guest-builder = { path = "../../../provers/risc0", optional = true } | ||
|
||
strata-primitives.workspace = true | ||
|
||
# TODO: make it optional, via the native feature. | ||
strata-native-zkvm-adapter.workspace = true | ||
strata-proofimpl-btc-blockspace.workspace = true | ||
strata-proofimpl-checkpoint.workspace = true | ||
strata-proofimpl-cl-agg.workspace = true | ||
strata-proofimpl-cl-stf.workspace = true | ||
strata-proofimpl-evm-ee-stf.workspace = true | ||
strata-proofimpl-l1-batch.workspace = true | ||
|
||
bincode.workspace = true | ||
borsh.workspace = true | ||
cfg-if = "1.0.0" | ||
serde.workspace = true | ||
thiserror.workspace = true | ||
|
||
[features] | ||
native = [] | ||
risc0 = ["strata-risc0-adapter/prover", "strata-risc0-guest-builder/prover"] | ||
sp1 = ["strata-sp1-adapter/prover", "strata-sp1-guest-builder/prover"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// TODO figure out the cfg-if. | ||
|
||
#[cfg(feature = "native")] | ||
pub mod native; | ||
#[cfg(feature = "native")] | ||
use strata_native_zkvm_adapter::NativeHost; | ||
#[cfg(feature = "native")] | ||
pub fn get_native_host(vm: ProofVm) -> &'static NativeHost { | ||
native::get_host(vm) | ||
} | ||
|
||
#[cfg(feature = "risc0")] | ||
pub mod risc0; | ||
#[cfg(feature = "risc0")] | ||
use strata_risc0_adapter::Risc0Host; | ||
#[cfg(feature = "risc0")] | ||
pub fn get_risc0_host(vm: ProofVm) -> &'static Risc0Host { | ||
risc0::get_host(vm) | ||
} | ||
|
||
#[cfg(feature = "sp1")] | ||
pub mod sp1; | ||
#[cfg(feature = "sp1")] | ||
use strata_sp1_adapter::SP1Host; | ||
#[cfg(feature = "sp1")] | ||
pub fn get_sp1_host(vm: ProofVm) -> &'static SP1Host { | ||
sp1::get_host(vm) | ||
} | ||
|
||
/// An identifier of different prover types. | ||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | ||
pub enum ProofVm { | ||
BtcProving, | ||
ELProving, | ||
CLProving, | ||
CLAggregation, | ||
L1Batch, | ||
Checkpoint, | ||
} |
Oops, something went wrong.