-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add dummy range program * add * add * add * Add * fix * fix --------- Co-authored-by: Ubuntu <[email protected]>
- Loading branch information
1 parent
a931117
commit ea89646
Showing
19 changed files
with
68 additions
and
424 deletions.
There are no files selected for viewing
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.
Binary file not shown.
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,15 @@ | ||
[package] | ||
name = "dummy-range" | ||
version = "0.1.0" | ||
license.workspace = true | ||
edition.workspace = true | ||
authors.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
|
||
[dependencies] | ||
# sp1 | ||
sp1-zkvm.workspace = true | ||
|
||
# op-succinct | ||
op-succinct-client-utils.workspace = true |
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,19 @@ | ||
//! A dummy replica of the `range` program. | ||
//! | ||
//! SAFETY: Does not perform any verification of the rollup state transition. | ||
#![no_main] | ||
sp1_zkvm::entrypoint!(main); | ||
|
||
use op_succinct_client_utils::boot::BootInfoStruct; | ||
use op_succinct_client_utils::BootInfoWithBytesConfig; | ||
|
||
pub fn main() { | ||
let boot_info_with_bytes_config = sp1_zkvm::io::read::<BootInfoWithBytesConfig>(); | ||
|
||
// BootInfoStruct is identical to BootInfoWithBytesConfig, except it replaces | ||
// the rollup_config_bytes with a hash of those bytes (rollupConfigHash). Securely | ||
// hashes the rollup config bytes. | ||
let boot_info_struct = BootInfoStruct::from(boot_info_with_bytes_config.clone()); | ||
sp1_zkvm::io::commit::<BootInfoStruct>(&boot_info_struct); | ||
} |
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
Oops, something went wrong.