-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ubuntu
committed
Aug 29, 2024
1 parent
5ab3b20
commit 5186041
Showing
4 changed files
with
43 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,5 @@ execution-reports/ | |
db/proofs.db | ||
|
||
**/bin/op-proposer | ||
|
||
artifact_* |
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,22 @@ | ||
use bincode; | ||
use client_utils::RawBootInfo; | ||
use host_utils::fetcher::SP1KonaDataFetcher; | ||
use sp1_sdk::{utils, SP1Stdin}; | ||
use std::fs; | ||
|
||
#[tokio::main] | ||
async fn main() -> Result<(), Box<dyn std::error::Error>> { | ||
utils::setup_logger(); | ||
// Read the artifact file | ||
// Claiming block 16544118 | ||
let artifact_bytes = fs::read("artifact_01j6dxg0f7evpv9v7myf0q9xcd")?; | ||
|
||
// Deserialize the bytes into SP1Stdin | ||
let mut stdin: SP1Stdin = bincode::deserialize(&artifact_bytes)?; | ||
|
||
let boot = stdin.read::<RawBootInfo>(); | ||
|
||
println!("{:?}", boot); | ||
|
||
Ok(()) | ||
} |