@@ -23,7 +23,7 @@ use crate::{
2323    task:: ProvingTask , 
2424} ; 
2525
26- use  scroll_zkvm_types:: proof:: { EvmProof ,  ProofEnum ,  StarkProof } ; 
26+ use  scroll_zkvm_types:: proof:: { EvmProof ,  ProofEnum ,  StarkProof ,   StarkProofStat } ; 
2727/// The default directory to locate openvm's halo2 SRS parameters. 
2828const  DEFAULT_PARAMS_DIR :  & str  = concat ! ( env!( "HOME" ) ,  "/.openvm/params/" ) ; 
2929
@@ -242,7 +242,7 @@ impl Prover {
242242pub  fn  gen_proof_stark ( & self ,  stdin :  StdIn )  -> Result < StarkProof ,  Error >  { 
243243        // Here we always do an execution of the guest program to get the cycle count. 
244244        // and do precheck before proving like ensure PI != 0 
245-         self . execute_and_check ( & stdin) ?; 
245+         let  total_cycles =  self . execute_and_check ( & stdin) ?; 
246246
247247        let  sdk = Sdk :: new ( ) ; 
248248        let  proof = sdk
@@ -258,6 +258,7 @@ impl Prover {
258258            public_values :  proof. user_public_values , 
259259            //exe_commitment: comm.exe, 
260260            //vm_commitment: comm.vm, 
261+             stat :  StarkProofStat  {  total_cycles } , 
261262        } ; 
262263        tracing:: info!( "verifing stark proof" ) ; 
263264        UniversalVerifier :: verify_stark_proof ( & proof,  & self . get_app_vk ( ) ) 
0 commit comments