Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add dusk Bls12_381 fork as dep - Document that ´multiscalar_mul` found in `utils.rs` will no longer be used. Instead we will use the pippenger implementation added to the BLS fork. * Refactor repo to use pippenger for multiscalar_mul - Renamed the `single_base_multiscalar_mul` and added comments to show that it is just used to compute the SRS and it's not PLONK's responsability to make it faster. We just have it for tests. Co-authored-by: decentralisedkev <kevtheappdev@gmail.com>
- Loading branch information
1 parent
0fbf6c7
commit c77aeb1
Showing
7 changed files
with
48 additions
and
37 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#![allow(non_snake_case)] | ||
|
||
#[macro_use] | ||
extern crate criterion; | ||
extern crate plonk; | ||
|
||
use bls12_381::{G1Projective, Scalar}; | ||
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion}; | ||
use plonk::commitment_scheme::kzg10::SRS; | ||
use rand::thread_rng; | ||
|
||
mod poly_commit_benches { | ||
|
||
use super::*; | ||
pub fn bench_polynomial_commitment(c: &mut Criterion) { | ||
// Generate the powers with size = 1_000_000 | ||
let srs = SRS::setup(1_000_000, &mut thread_rng()); | ||
let (ck, vk) = srs.trim(1_000_000usize); | ||
let random_poly = (0..1000000) | ||
.iter() | ||
.map(|| Scalar::rand(&mut thread_rng())) | ||
.collect(); | ||
let mut group = c.benchmark_group("Poly commit"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters