Skip to content

Commit f7abfce

Browse files
authored
Merge pull request #3205 from ProvableHQ/extend_dev_skip_checks
Extend dev_skip_checks so vk public inputs don't have to match
2 parents 60522fa + e088979 commit f7abfce

File tree

1 file changed

+11
-8
lines changed
  • synthesizer/process/src/verify_execution

1 file changed

+11
-8
lines changed

synthesizer/process/src/verify_execution/mod.rs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -289,14 +289,17 @@ impl<N: Network> Process<N> {
289289
// count. The Varuna verifier pads inputs up to the domain size (the next power of two at
290290
// least as large as `num_public_inputs`) with zero field elements, so having fewer inputs
291291
// than the padded count is always valid.
292-
for (verifying_key, inputs_list) in &verifier_inputs {
293-
let expected = verifying_key.circuit_info.num_public_inputs;
294-
for inputs in inputs_list {
295-
ensure!(
296-
inputs.len() <= expected,
297-
"Verifier input count mismatch: expected at most {expected} public inputs, found {}",
298-
inputs.len()
299-
);
292+
#[cfg(not(feature = "dev_skip_checks"))]
293+
{
294+
for (verifying_key, inputs_list) in &verifier_inputs {
295+
let expected = verifying_key.circuit_info.num_public_inputs;
296+
for inputs in inputs_list {
297+
ensure!(
298+
inputs.len() <= expected,
299+
"Verifier input count mismatch: expected at most {expected} public inputs, found {}",
300+
inputs.len()
301+
);
302+
}
300303
}
301304
}
302305

0 commit comments

Comments
 (0)