Skip to content

Commit

Permalink
Rename AppVerifier to StfVerifier
Browse files Browse the repository at this point in the history
  • Loading branch information
bkolad committed Nov 9, 2023
1 parent b7083a0 commit 33e9cc8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use const_rollup_config::ROLLUP_NAMESPACE_RAW;
use demo_stf::runtime::Runtime;
use demo_stf::AppVerifier;
use demo_stf::StfVerifier;
use sov_celestia_adapter::types::Namespace;
use sov_celestia_adapter::verifier::CelestiaVerifier;
use sov_modules_api::default_context::ZkDefaultContext;
Expand All @@ -23,7 +23,7 @@ pub fn main() {
let stf: StfBlueprint<ZkDefaultContext, _, _, Runtime<_, _>, BasicKernel<_>> =
StfBlueprint::new();

let mut stf_verifier = AppVerifier::new(
let mut stf_verifier = StfVerifier::new(
stf,
CelestiaVerifier {
rollup_namespace: ROLLUP_NAMESPACE,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![no_main]
use demo_stf::runtime::Runtime;
use demo_stf::AppVerifier;
use demo_stf::StfVerifier;
#[cfg(feature = "bench")]
use risc0_zkvm::guest::env;
use sov_mock_da::MockDaVerifier;
Expand Down Expand Up @@ -39,7 +39,7 @@ pub fn main() {
let stf: StfBlueprint<ZkDefaultContext, _, _, Runtime<_, _>, BasicKernel<_>> =
StfBlueprint::new();

let mut stf_verifier = AppVerifier::new(stf, MockDaVerifier {});
let mut stf_verifier = StfVerifier::new(stf, MockDaVerifier {});

stf_verifier
.run_block(guest, storage)
Expand Down
2 changes: 1 addition & 1 deletion examples/demo-rollup/stf/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ use sov_rollup_interface::da::DaVerifier;
use sov_stf_runner::verifier::StateTransitionVerifier;

/// Alias for StateTransitionVerifier.
pub type AppVerifier<DA, Vm, ZkContext, RT, K> =
pub type StfVerifier<DA, Vm, ZkContext, RT, K> =
StateTransitionVerifier<StfBlueprint<ZkContext, <DA as DaVerifier>::Spec, Vm, RT, K>, DA, Vm>;
4 changes: 2 additions & 2 deletions module-system/sov-modules-rollup-blueprint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ impl<S: RollupBlueprint> Rollup<S> {
}
}

type AppVerifier<DA, Zk, ZkContext, RT, K> =
type StfVerifier<DA, Zk, ZkContext, RT, K> =
StateTransitionVerifier<StfBlueprint<ZkContext, <DA as DaVerifier>::Spec, Zk, RT, K>, DA, Zk>;

type ZkProver<ZkContext, Vm, ZkRuntime, Da, K> = Prover<
Expand All @@ -225,7 +225,7 @@ fn configure_prover<
da_verifier: Da::Verifier,
) -> ZkProver<ZkContext, Vm, RT, Da, K> {
let app = StfBlueprint::new();
let app_verifier = AppVerifier::<_, _, ZkContext, RT, K>::new(app, da_verifier);
let app_verifier = StfVerifier::<_, _, ZkContext, RT, K>::new(app, da_verifier);

let config = match cfg {
RollupProverConfig::Simulate => ProofGenConfig::Simulate(app_verifier),
Expand Down

0 comments on commit 33e9cc8

Please sign in to comment.