Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare committed Oct 16, 2024
1 parent 545d1a4 commit 07c2044
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions plonky2/src/recursion/dummy_circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,17 +287,17 @@ where
}

fn serialize(&self, dst: &mut Vec<u8>, _common_data: &CommonCircuitData<F, D>) -> 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<F, D>) -> IoResult<Self> {
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<F, D>) -> IoResult<Self> {
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,
Expand Down

0 comments on commit 07c2044

Please sign in to comment.