Skip to content

Commit a3bf7ac

Browse files
committed
example(bench.rs): expand a little bit
1 parent c4d624d commit a3bf7ac

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

examples/bench.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use jevil::{Params, keygen, sign, verify};
1818
fn main() {
1919
let arg = env::args()
2020
.nth(1)
21-
.unwrap_or_else(|| "1,3,7,15,31".to_string());
21+
.unwrap_or_else(|| "1,3,7,15,31,63,127,255,511,1023,2047,4095".to_string());
2222
let n_stars: Vec<u32> = arg
2323
.split(',')
2424
.map(|s| s.trim().parse().expect("invalid n_star"))

examples/cliff.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,11 @@ fn lagrange_interpolate(pairs: &[(Goldilocks4, Goldilocks4)]) -> Vec<Goldilocks4
110110
// Multiply in place by (X - x): new[k] = old[k-1] - x*old[k],
111111
// walking high-to-low so old[k-1] is still intact when read.
112112
for k in (0..=deg).rev() {
113-
let lower = if k >= 1 { master[k - 1] } else { Goldilocks4::ZERO };
113+
let lower = if k >= 1 {
114+
master[k - 1]
115+
} else {
116+
Goldilocks4::ZERO
117+
};
114118
master[k] = lower - x * master[k];
115119
}
116120
}

0 commit comments

Comments
 (0)