chore!: Update rust_eth_kzg to v0.5.1 (formally known as peerdas-kzg) (#6309)

* update rust_eth_kzg

Co-authored-by: Eitan Seri-Levi <eserilev@ucsc.edu>

* Update kzg module

Co-authored-by: Eitan Seri-Levi <eserilev@ucsc.edu>

* update benchmark code

Co-authored-by: Eitan Seri-Levi <eserilev@ucsc.edu>

* Add note on trusted setup configuration.
This commit is contained in:
kevaundray
2024-08-28 07:43:14 +01:00
committed by GitHub
parent bcff4aa825
commit 5e9cc60dd7
4 changed files with 36 additions and 23 deletions

View File

@@ -11,9 +11,13 @@ pub fn bench_init_context(c: &mut Criterion) {
c.bench_function(&format!("Initialize context rust_eth_kzg"), |b| {
b.iter(|| {
const NUM_THREADS: usize = 1;
let trusted_setup = PeerDASTrustedSetup::from(&trusted_setup);
DASContext::with_threads(&trusted_setup, NUM_THREADS)
DASContext::new(
&trusted_setup,
rust_eth_kzg::UsePrecomp::Yes {
width: rust_eth_kzg::constants::RECOMMENDED_PRECOMP_WIDTH,
},
)
})
});
c.bench_function(&format!("Initialize context c-kzg (4844)"), |b| {