Skip to content

Commit

Permalink
Bernstein yang modular multiplicative inverter (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekseiVambol authored and jonathanpwang committed Sep 23, 2023
1 parent 328160f commit 78c2b26
Show file tree
Hide file tree
Showing 10 changed files with 462 additions and 60 deletions.
3 changes: 3 additions & 0 deletions benches/bn256_field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ pub fn bench_bn256_field(c: &mut Criterion) {
group.bench_function("bn256_fq_square", |bencher| {
bencher.iter(|| black_box(&a).square())
});
group.bench_function("bn256_fq_invert", |bencher| {
bencher.iter(|| black_box(&a).invert())
});
}

criterion_group!(benches, bench_bn256_field);
Expand Down
Loading

0 comments on commit 78c2b26

Please sign in to comment.