Skip to content

Commit ca19e5d

Browse files
committed
nargo fmt
1 parent 0129c4e commit ca19e5d

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

noir-projects/noir-protocol-circuits/crates/private-kernel-lib/src/private_kernel_inner.nr

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -60,28 +60,26 @@ impl PrivateKernelInnerCircuitPrivateInputs {
6060
start_private_call_stack_length
6161
- 1];
6262

63-
private_call_data_validator.verify_proof(false /* is_first_app */);
64-
private_call_data_validator.validate_common(
65-
self.previous_kernel.public_inputs.constants.protocol_contract_tree_root,
66-
);
67-
private_call_data_validator.validate_against_call_request(call_request);
68-
private_call_data_validator.validate_against_previous_kernel(
63+
private_call_data_validator.verify_proof(false /* is_first_app */);
64+
private_call_data_validator.validate_common(
65+
self.previous_kernel.public_inputs.constants.protocol_contract_tree_root,
66+
);
67+
private_call_data_validator.validate_against_call_request(call_request);
68+
private_call_data_validator.validate_against_previous_kernel(self.previous_kernel.public_inputs);
69+
70+
// Generate output.
71+
// Safety: The output is validated below by PrivateKernelCircuitOutputValidator.
72+
let output = unsafe { self.generate_output() };
73+
74+
// Validate output.
75+
if dep::types::validate::should_validate_output() {
76+
PrivateKernelCircuitOutputValidator::new(output).validate_as_inner_call(
6977
self.previous_kernel.public_inputs,
78+
self.private_call,
7079
);
71-
72-
// Generate output.
73-
// Safety: The output is validated below by PrivateKernelCircuitOutputValidator.
74-
let output = unsafe { self.generate_output() };
75-
76-
// Validate output.
77-
if dep::types::validate::should_validate_output() {
78-
PrivateKernelCircuitOutputValidator::new(output).validate_as_inner_call(
79-
self.previous_kernel.public_inputs,
80-
self.private_call,
81-
);
82-
}
83-
output
8480
}
81+
output
82+
}
8583
}
8684

8785
mod tests {

0 commit comments

Comments
 (0)