-
Notifications
You must be signed in to change notification settings - Fork 631
chore: openvm 1.6 #1783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
chore: openvm 1.6 #1783
Changes from 21 commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
bdf7826
rollback dep of zkvm-prover
noel2004 9839bf7
prover quit while proving process has panicked
noel2004 d262a63
Merge remote-tracking branch 'origin/develop' into feat/prover_4.7
noel2004 dc29c8c
Merge remote-tracking branch 'origin/develop' into feat/prover_4.7
noel2004 af63bc0
fix wrong configuration
noel2004 5c2803c
Merge remote-tracking branch 'origin/develop' into feat/prover_4.7
noel2004 5ae31bc
Merge remote-tracking branch 'origin/develop' into feat/prover_4.7
noel2004 98be0a0
Merge remote-tracking branch 'origin/develop' into feat/prover_4.7
noel2004 b244fa8
Merge remote-tracking branch 'origin/develop' into feat/prover_4.7
noel2004 e852915
update zkvm-prover
noel2004 b833468
add debug mode, trivial fixings
noel2004 930a12a
update zkvm-prover dep and openvm to 1.4.2
noel2004 3b174f8
add test data for mainnet galileo and prune feynman (can not be teste…
noel2004 74a3d7a
udpate zkvm-prover dep
noel2004 ede29c7
init dumper
noel2004 b270d96
dumper
noel2004 79d79ed
fix
noel2004 d306b38
fix
noel2004 03b992f
json mode
noel2004 492563f
Merge remote-tracking branch 'origin/develop' into feat/zkvm_prover_142
noel2004 6a57a2e
update dep of zkvm prover and trivial fixing
noel2004 8955d4f
Merge branch 'feat/zkvm_prover_143' into develop
noel2004 58297d3
fix e2e tool
noel2004 b76539b
update test env
noel2004 93f755c
update dep
noel2004 252eea9
use galileov2 for cloak test enviroment
noel2004 a35834d
fix make file in e2e test
noel2004 e1aa90b
update ZKVM_VERSION
noel2004 f2a9ba5
upgrade dep
noel2004 649c441
pump crates version
noel2004 09d83e1
udpate testing configuration
noel2004 fafcea4
Merge remote-tracking branch 'origin/develop' into feat/zkvm_prover_143
noel2004 bbe6c41
update proving-sdk
noel2004 766aa25
update zkvm-prover with patched openvm 1.4.3
noel2004 b4ccd70
update zkvm-prover and test stuff
noel2004 1408430
AI helper: init
noel2004 343ed78
refine the skill and update makefile
noel2004 ac40de8
agentic the local test
noel2004 7643561
add unit test agent
noel2004 949271c
fix "put into background" instruction
noel2004 00c407c
+ fix local memory instruction
noel2004 b19dac8
update ignore files
noel2004 b0575d9
update zkvm prover
lispc 1e020b9
fix cargo check
Velaciela d595390
fix cargo fmt import ordering
Velaciela 4657129
add docs
Velaciela d46829c
test e2e done
Velaciela 13193e8
Merge origin/develop into feat/zkvm_prover_143
Velaciela 4ac05e7
done
Velaciela 37a43ba
fix ci
Velaciela 7186b4a
remove coordinator-proxy in e2e test
Velaciela db1b42c
update .gitignore
lispc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,88 @@ | ||
| use async_trait::async_trait; | ||
| use libzkp::ProvingTaskExt; | ||
| use scroll_proving_sdk::prover::{ | ||
| proving_service::{ | ||
| GetVkRequest, GetVkResponse, ProveRequest, ProveResponse, QueryTaskRequest, | ||
| QueryTaskResponse, TaskStatus, | ||
| }, | ||
| ProvingService, | ||
| }; | ||
| use scroll_zkvm_types::ProvingTask; | ||
|
|
||
| #[derive(Default)] | ||
| pub struct Dumper { | ||
| #[allow(dead_code)] | ||
| pub target_path: String, | ||
| pub json_mode: bool, | ||
|
lispc marked this conversation as resolved.
|
||
| } | ||
|
|
||
| impl Dumper { | ||
| fn dump(&self, input_string: &str) -> eyre::Result<()> { | ||
| let task: ProvingTaskExt = serde_json::from_str(input_string)?; | ||
| let task = ProvingTask::from(task); | ||
|
|
||
| if self.json_mode { | ||
| let file = std::fs::File::create("input_task.json")?; | ||
| serde_json::to_writer(std::io::BufWriter::new(file), &task)?; | ||
| } else { | ||
| // stream-encode serialized_witness to input_task.bin using bincode 2.0 | ||
| let input_file = std::fs::File::create("input_task.bin")?; | ||
| let mut input_writer = std::io::BufWriter::new(input_file); | ||
| bincode::encode_into_std_write( | ||
| &task.serialized_witness, | ||
| &mut input_writer, | ||
| bincode::config::standard(), | ||
| )?; | ||
|
|
||
| // stream-encode aggregated_proofs to agg_proofs.bin using bincode 2.0 | ||
| let agg_file = std::fs::File::create("agg_proofs.bin")?; | ||
| let mut agg_writer = std::io::BufWriter::new(agg_file); | ||
| for proof in &task.aggregated_proofs { | ||
| let sz = bincode::serde::encode_into_std_write( | ||
| &proof.proofs, | ||
| &mut agg_writer, | ||
| bincode::config::standard(), | ||
| )?; | ||
| println!("written {sz} bytes for proof"); | ||
| } | ||
| } | ||
|
|
||
| Ok(()) | ||
| } | ||
| } | ||
|
|
||
| #[async_trait] | ||
| impl ProvingService for Dumper { | ||
| fn is_local(&self) -> bool { | ||
| true | ||
| } | ||
| async fn get_vks(&self, _: GetVkRequest) -> GetVkResponse { | ||
| // get vk has been deprecated in new prover with dynamic asset loading scheme | ||
| GetVkResponse { | ||
| vks: vec![], | ||
| error: None, | ||
| } | ||
| } | ||
| async fn prove(&mut self, req: ProveRequest) -> ProveResponse { | ||
| let error = if let Err(e) = self.dump(&req.input) { | ||
| Some(format!("failed to dump: {}", e)) | ||
| } else { | ||
| None | ||
| }; | ||
|
|
||
| ProveResponse { | ||
| status: TaskStatus::Failed, | ||
| error, | ||
| ..Default::default() | ||
| } | ||
| } | ||
|
|
||
| async fn query_task(&mut self, req: QueryTaskRequest) -> QueryTaskResponse { | ||
| QueryTaskResponse { | ||
| task_id: req.task_id, | ||
| status: TaskStatus::Failed, | ||
| error: Some("dump file finished but need a fail return to exit".to_string()), | ||
| ..Default::default() | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.