File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
zkvm-prover/src/zk_circuits_handler Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -117,18 +117,8 @@ impl CircuitsHandler for Arc<Mutex<EuclidHandler>> {
117117 async fn get_proof_data ( & self , prove_request : ProveRequest ) -> Result < String > {
118118 match prove_request. proof_type {
119119 ProofType :: Chunk => {
120- let witnesses: Vec < sbv_primitives:: types:: BlockWitness > =
121- serde_json:: from_str ( & prove_request. input ) ?;
122-
123- let proof = self
124- . try_lock ( )
125- . unwrap ( )
126- . chunk_prover
127- . gen_proof ( & ChunkProvingTask {
128- block_witnesses : witnesses,
129- prev_msg_queue_hash : Default :: default ( ) ,
130- fork_name : Phase :: EuclidV1 . as_str ( ) . to_string ( ) ,
131- } ) ?;
120+ let task: ChunkProvingTask = serde_json:: from_str ( & prove_request. input ) ?;
121+ let proof = self . try_lock ( ) . unwrap ( ) . chunk_prover . gen_proof ( & task) ?;
132122
133123 Ok ( serde_json:: to_string ( & proof) ?)
134124 }
You can’t perform that action at this time.
0 commit comments