Adjust default parameters (#406)

- Update formula in `estimate_verif_num_gates` after the update in the recursive verification from https://github.com/0xPARC/pod2/pull/397
- Update the parameters to get better utilization of 2^16 rows
- Update metrics report to be more compact
This commit is contained in:
Eduard S. 2025-09-08 10:14:12 +02:00 committed by GitHub
parent a24bbf7a3b
commit e1f8a9ad8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 70 additions and 16 deletions

View file

@ -1506,7 +1506,7 @@ pub fn calculate_statements_hash_circuit(
statements: &[StatementTarget],
) -> HashOutTarget {
assert!(statements.len() <= params.num_public_statements_hash);
let measure = measure_gates_begin!(builder, "CalculateId");
let measure = measure_gates_begin!(builder, "CalculateStsHash");
let statements_rev_flattened = statements.iter().rev().flat_map(|s| s.flatten());
let mut none_st = mainpod::Statement::from(Statement::None);
pad_statement(params, &mut none_st);
@ -1561,6 +1561,7 @@ fn build_custom_predicate_table_circuit(
let mut custom_predicate_table =
Vec::with_capacity(params.max_custom_predicate_batches * params.max_custom_batch_size);
for cpb in custom_predicate_batches {
let measure_cpb = measure_gates_begin!(builder, "CustomPredBatch");
let id = cpb.id(builder); // constrain the id
for (index, cp) in cpb.predicates.iter().enumerate() {
let statements = cp
@ -1582,6 +1583,7 @@ fn build_custom_predicate_table_circuit(
let in_query_hash = entry.hash(builder);
custom_predicate_table.push(in_query_hash);
}
measure_gates_end!(builder, measure_cpb);
}
measure_gates_end!(builder, measure);
Ok(custom_predicate_table)