Skip to content

Commit 2749ec1

Browse files
committed
Clarify comments and remove redundant code
1 parent dc83110 commit 2749ec1

File tree

1 file changed

+3
-8
lines changed
  • folding-schemes/src/folding/protogalaxy

1 file changed

+3
-8
lines changed

folding-schemes/src/folding/protogalaxy/mod.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -895,21 +895,16 @@ where
895895
)?;
896896

897897
// CycleFold part:
898-
let mut r0_bits = aux.L_X_evals[0].into_bigint().to_bits_le();
899-
let mut r1_bits = aux.L_X_evals[1].into_bigint().to_bits_le();
900-
r0_bits.resize(C1::ScalarField::MODULUS_BIT_SIZE as usize, false);
901-
r1_bits.resize(C1::ScalarField::MODULUS_BIT_SIZE as usize, false);
902-
903-
// cyclefold circuit for enforcing:
904-
// 0 + U_i.phi * L_evals[0] == phi_stars[0]
898+
// Create cyclefold circuit for enforcing:
899+
// U_i.phi * L_evals[0] + u_i.phi * L_evals[1] = U_i1.phi
905900
let (cf_w_i, cf_u_i) = ProtoGalaxyCycleFoldConfig {
906901
rs: aux.L_X_evals,
907902
points: vec![self.U_i.phi, self.u_i.phi],
908903
}
909904
.build_circuit()
910905
.generate_incoming_instance_witness::<_, CS2, false>(&self.cf_cs_params, &mut rng)?;
911906

912-
// fold self.cf_U_i + cf1_U -> folded running with cf1
907+
// fold cf_U_i + cf_u_i -> folded running instance cf_U_i1
913908
let (cf_W_i1, cf_U_i1, cf_cmTs) =
914909
CycleFoldAugmentationGadget::fold_native::<_, CS2, false>(
915910
&mut transcript_prover,

0 commit comments

Comments
 (0)