-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix * Update sov-rollup-starter with RollupTemplate * make create_native_storage fallible * change logging level * change logging level * cleanup * Fix lint
- Loading branch information
Showing
22 changed files
with
288 additions
and
309 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
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 @@ | ||
rollup-starter-data |
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
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
21 changes: 20 additions & 1 deletion
21
sov-rollup-starter/provers/risc0/guest-mock/src/bin/mock_da.rs
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 |
---|---|---|
@@ -1,6 +1,25 @@ | ||
#![no_main] | ||
//! This binary implements the verification logic for the rollup. This is the code that runs inside | ||
//! of the zkvm in order to generate proofs for the rollup. | ||
use sov_modules_api::default_context::ZkDefaultContext; | ||
use sov_modules_stf_template::AppTemplate; | ||
use sov_risc0_adapter::guest::Risc0Guest; | ||
use sov_rollup_interface::mocks::MockDaVerifier; | ||
use sov_state::ZkStorage; | ||
use stf_starter::runtime::Runtime; | ||
use stf_starter::AppVerifier; | ||
|
||
risc0_zkvm::guest::entry!(main); | ||
|
||
pub fn main() {} | ||
pub fn main() { | ||
let guest = Risc0Guest::new(); | ||
let storage = ZkStorage::new(); | ||
let app: AppTemplate<ZkDefaultContext, _, _, Runtime<_, _>> = AppTemplate::new(storage); | ||
|
||
let mut stf_verifier = AppVerifier::new(app, MockDaVerifier {}); | ||
|
||
stf_verifier | ||
.run_block(guest) | ||
.expect("Prover must be honest"); | ||
} |
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
Oops, something went wrong.