@@ -29,38 +29,38 @@ def build_markdown_report(sections) -> str:
2929 lines .append (f"## { zkevm } " )
3030 lines .append ("" )
3131
32- (zkevm_params , results ) = sections [zkevm ]
32+ (zkvm_obj , results ) = sections [zkevm ]
3333 display_results : dict [str , Any ] = {
3434 name : data .copy () if isinstance (data , dict ) else data
3535 for name , data in results .items ()
3636 }
3737
3838 # Add parameter information
3939 lines .append (f"**Parameters:**" )
40- lines .append (f"- Number of queries: { zkevm_params .num_queries } " )
41- lines .append (f"- Grinding (bits): { zkevm_params .grinding_query_phase } " )
40+ lines .append (f"- Number of queries: { zkvm_obj .num_queries } " )
41+ lines .append (f"- Grinding (bits): { zkvm_obj .grinding_query_phase } " )
4242 # Get field name from the field extension degree and base field
4343 field_name = "Unknown"
44- if hasattr (zkevm_params , 'field_extension_degree' ):
45- if zkevm_params .field_extension_degree == 2 :
44+ if hasattr (zkvm_obj , 'field_extension_degree' ):
45+ if zkvm_obj .field_extension_degree == 2 :
4646 field_name = "Goldilocks²"
47- elif zkevm_params .field_extension_degree == 3 :
47+ elif zkvm_obj .field_extension_degree == 3 :
4848 field_name = "Goldilocks³"
49- elif zkevm_params .field_extension_degree == 4 :
49+ elif zkvm_obj .field_extension_degree == 4 :
5050 field_name = "BabyBear⁴"
51- elif zkevm_params .field_extension_degree == 5 :
51+ elif zkvm_obj .field_extension_degree == 5 :
5252 field_name = "BabyBear⁵"
5353 lines .append (f"- Field: { field_name } " )
54- lines .append (f"- Rate (ρ): { zkevm_params .rho } " )
55- lines .append (f"- Trace length (H): $2^{{{ zkevm_params .h } }}$" )
56- if zkevm_params .power_batching :
54+ lines .append (f"- Rate (ρ): { zkvm_obj .rho } " )
55+ lines .append (f"- Trace length (H): $2^{{{ zkvm_obj .h } }}$" )
56+ if zkvm_obj .power_batching :
5757 lines .append (f"- Batching: Powers" )
5858 else :
5959 lines .append (f"- Batching: Affine" )
6060 lines .append ("" )
6161
6262 # Proof size
63- proof_size_kib = zkevm_params . proof_size_bits // KIB
63+ proof_size_kib = zkvm_obj . get_proof_size_bits () // KIB
6464 lines .append (f"**Proof Size Estimate:** { proof_size_kib } KiB, where 1 KiB = 1024 bytes" )
6565 lines .append ("" )
6666
0 commit comments