From 07c20447bfcdada6bd479bd8a13af26082923520 Mon Sep 17 00:00:00 2001 From: Robin Salen Date: Wed, 16 Oct 2024 18:04:37 -0400 Subject: [PATCH] Tweak --- plonky2/src/recursion/dummy_circuit.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plonky2/src/recursion/dummy_circuit.rs b/plonky2/src/recursion/dummy_circuit.rs index 2ed269c820..cd85593822 100644 --- a/plonky2/src/recursion/dummy_circuit.rs +++ b/plonky2/src/recursion/dummy_circuit.rs @@ -287,17 +287,17 @@ where } fn serialize(&self, dst: &mut Vec, _common_data: &CommonCircuitData) -> IoResult<()> { - dst.write_target_proof_with_public_inputs(&self.proof_with_pis_target)?; - dst.write_proof_with_public_inputs(&self.proof_with_pis)?; dst.write_target_verifier_circuit(&self.verifier_data_target)?; - dst.write_verifier_circuit_data(&self.verifier_data, &DefaultGateSerializer) + dst.write_verifier_circuit_data(&self.verifier_data, &DefaultGateSerializer)?; + dst.write_target_proof_with_public_inputs(&self.proof_with_pis_target)?; + dst.write_proof_with_public_inputs(&self.proof_with_pis) } - fn deserialize(src: &mut Buffer, common_data: &CommonCircuitData) -> IoResult { - let proof_with_pis_target = src.read_target_proof_with_public_inputs()?; - let proof_with_pis = src.read_proof_with_public_inputs(common_data)?; + fn deserialize(src: &mut Buffer, _common_data: &CommonCircuitData) -> IoResult { let verifier_data_target = src.read_target_verifier_circuit()?; let verifier_data = src.read_verifier_circuit_data(&DefaultGateSerializer)?; + let proof_with_pis_target = src.read_target_proof_with_public_inputs()?; + let proof_with_pis = src.read_proof_with_public_inputs(&verifier_data.common)?; Ok(Self { proof_with_pis_target, proof_with_pis,