Skip to content

Commit a8ba63f

Browse files
committed
Remove additional commitment proofs
1 parent 6b39853 commit a8ba63f

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

spartan_parallel/src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ pub struct SNARK<S: SpartanExtensionField> {
610610
perm_poly_poly_list: Vec<S>,
611611
proof_eval_perm_poly_prod_list: Vec<PolyEvalProof<S>>,
612612

613-
shift_proof: ShiftProofs<S>,
613+
// shift_proof: ShiftProofs<S>,
614614
io_proof: IOProofs<S>,
615615
}
616616

@@ -2260,6 +2260,7 @@ impl<S: SpartanExtensionField> SNARK<S> {
22602260
shifted_polys.push(&vir_mem_addr_w3_shifted_prover.poly_w[0]);
22612261
header_len_list.push(6);
22622262
}
2263+
/*
22632264
let shift_proof = ShiftProofs::prove(
22642265
orig_polys,
22652266
shifted_polys,
@@ -2268,6 +2269,7 @@ impl<S: SpartanExtensionField> SNARK<S> {
22682269
&mut random_tape,
22692270
);
22702271
shift_proof
2272+
*/
22712273
};
22722274
timer_proof.stop();
22732275

@@ -2314,7 +2316,7 @@ impl<S: SpartanExtensionField> SNARK<S> {
23142316
perm_poly_poly_list,
23152317
proof_eval_perm_poly_prod_list,
23162318

2317-
shift_proof,
2319+
// shift_proof,
23182320
io_proof,
23192321
}
23202322
}
@@ -3256,9 +3258,11 @@ impl<S: SpartanExtensionField> SNARK<S> {
32563258
header_len_list.push(6);
32573259
}
32583260

3261+
/*
32593262
self
32603263
.shift_proof
32613264
.verify(poly_size_list, shift_size_list, header_len_list, transcript)?;
3265+
*/
32623266
}
32633267
timer_proof.stop();
32643268

spartan_parallel/src/r1csproof.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub struct R1CSProof<S: SpartanExtensionField> {
2323
// pok_claims_phase2: (KnowledgeProof<S>, ProductProof<S>),
2424
// proof_eq_sc_phase1: EqualityProof<S>,
2525
// proof_eq_sc_phase2: EqualityProof<S>,
26-
proof_eval_vars_at_ry_list: Vec<PolyEvalProof<S>>,
26+
// proof_eval_vars_at_ry_list: Vec<PolyEvalProof<S>>,
2727
}
2828

2929
impl<S: SpartanExtensionField> R1CSProof<S> {
@@ -464,6 +464,7 @@ impl<S: SpartanExtensionField> R1CSProof<S> {
464464
}
465465
}
466466

467+
/*
467468
let proof_eval_vars_at_ry_list = PolyEvalProof::prove_batched_instances_disjoint_rounds(
468469
&poly_list,
469470
&num_proofs_list,
@@ -474,6 +475,7 @@ impl<S: SpartanExtensionField> R1CSProof<S> {
474475
transcript,
475476
random_tape,
476477
);
478+
*/
477479

478480
// Bind the resulting witness list to rp
479481
// poly_vars stores the result of each witness matrix bounded to (rq_short ++ ry)
@@ -566,7 +568,7 @@ impl<S: SpartanExtensionField> R1CSProof<S> {
566568
// pok_claims_phase2,
567569
// proof_eq_sc_phase1,
568570
// proof_eq_sc_phase2,
569-
proof_eval_vars_at_ry_list,
571+
// proof_eval_vars_at_ry_list,
570572
},
571573
[rp, rq_rev, rx, [rw, ry].concat()],
572574
)
@@ -706,6 +708,7 @@ impl<S: SpartanExtensionField> R1CSProof<S> {
706708
}
707709
}
708710

711+
/*
709712
PolyEvalProof::verify_batched_instances_disjoint_rounds(
710713
&self.proof_eval_vars_at_ry_list,
711714
&num_proofs_list,
@@ -714,6 +717,7 @@ impl<S: SpartanExtensionField> R1CSProof<S> {
714717
&rq,
715718
&ry,
716719
)?;
720+
*/
717721

718722
// Then on rp
719723
for p in 0..num_instances {

0 commit comments

Comments
 (0)