File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
synthesizer/process/src/verify_execution Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments