Skip to content

Commit 7f69af5

Browse files
committed
Added springproofs
1 parent 0c62a1d commit 7f69af5

File tree

7 files changed

+408
-19
lines changed

7 files changed

+408
-19
lines changed

benches/perf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn apply_permutation_group(vec_a: Vec<G1Affine>, permutation: &Vec<u32>) -> Vec<
2626
fn benchmark_shuffle(c: &mut Criterion) {
2727
let mut rng = StdRng::seed_from_u64(0u64);
2828

29-
let N = 512;
29+
let N = 84;
3030
let N_BLINDERS = 4;
3131
let ell = N - N_BLINDERS;
3232

src/curdleproofs.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ impl CurdleproofsProof {
241241
rng,
242242
)?;
243243

244+
println!("done1");
245+
244246
// Step 3
245247
self.same_scalar_proof.verify(
246248
&crs.G_t,
@@ -253,6 +255,8 @@ impl CurdleproofsProof {
253255
&mut transcript,
254256
)?;
255257

258+
println!("done2");
259+
256260
// Step 4
257261
let A_prime = self.A + self.cm_T.T_1 + self.cm_U.T_1;
258262

@@ -288,6 +292,7 @@ impl CurdleproofsProof {
288292
&mut msm_accumulator,
289293
rng,
290294
)?;
295+
println!("done3");
291296

292297
// Finally check the correctness of R and S
293298
msm_accumulator.accumulate_check(&self.R, &vec_a, vec_R, rng);

src/grand_product_argument.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ impl GrandProductProof {
7474

7575
let vec_c_blinders = generate_blinders(rng, n_blinders); // vec_r_c in the paper
7676
let C = msm(crs_G_vec, &vec_c) + msm(crs_H_vec, &vec_c_blinders);
77-
77+
78+
7879
// Compute r_p
7980
let vec_r_b_plus_alpha: Vec<Fr> =
8081
vec_b_blinders.iter().map(|r_b_i| *r_b_i + alpha).collect();
@@ -141,7 +142,7 @@ impl GrandProductProof {
141142
let inner_prod =
142143
r_p * beta.pow([(ell + 1) as u64]) + gprod_result * beta.pow([ell as u64]) - Fr::one();
143144

144-
vec_c.extend(vec_c_blinders);
145+
vec_c.extend(&vec_c_blinders);
145146
vec_d.extend(vec_d_blinders);
146147

147148
// Sanity checks

0 commit comments

Comments
 (0)