File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed
bin/prover-perf/src/programs Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change 11use std:: { fs, sync:: LazyLock } ;
22
33use moho_runtime_impl:: RuntimeInput ;
4- use moho_types:: MohoAttestation ;
54use sp1_sdk:: HashableKey ;
6- use ssz:: { Decode , Encode } ;
5+ use ssz:: Encode ;
76use strata_asm_proof_impl:: {
87 program:: AsmStfProofProgram ,
98 test_utils:: {
@@ -35,21 +34,7 @@ pub(crate) fn create_runtime_input() -> RuntimeInput {
3534 )
3635}
3736
38- pub ( crate ) fn check_proof_and_execution ( ) {
39- let input = create_runtime_input ( ) ;
40- let executed_moho_transition = AsmStfProofProgram :: execute ( & input) . unwrap ( ) ;
41-
42- let asm_stf_proof = ProofReceiptWithMetadata :: load ( "asm-stf_SP1_v5.0.0.proof.bin" )
43- . expect ( "failed to open proof" ) ;
44- let proven_moho_transition =
45- MohoAttestation :: from_ssz_bytes ( asm_stf_proof. receipt ( ) . public_values ( ) . as_bytes ( ) )
46- . unwrap ( ) ;
47-
48- assert_eq ! ( executed_moho_transition, proven_moho_transition) ;
49- }
50-
5137pub ( crate ) fn gen_perf_report ( ) -> PerformanceReport {
52- check_proof_and_execution ( ) ;
5338 let input = create_runtime_input ( ) ;
5439 AsmStfProofProgram :: perf_report ( & input, & * ASM_HOST )
5540 . expect ( "failed to generate performance report" )
You can’t perform that action at this time.
0 commit comments