Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Aug 28, 2024

Conversation

kevaundray
Copy link
Contributor

Issue Addressed

v0.5.0 was published with the following changes: crate-crypto/rust-eth-kzg#161

From the list of breaking changes in that link, the ones relevant to downstream rust users are:

  • Rename recover_cells_and_proofs -> recover_cells_and_kzg_proofs
  • Add a ThreadCount enum for specifying the number of threads to use
  • Allow downstream users to avoid the precomputations
  • Add compile time flags to disable rayon

Which issue # does this PR address?

Proposed Changes

  • The library by default runs on a single thread, so one no longer specifies the threadcount.
  • update recover_cells_and_kzg_proofs

Additional Info

Rayon's global threadpool and local threadpool seems to have issues -- if we were to enable multithreading it would be using the global threadpool.

In a future PR, I think we would want to re-enable multithreading as we are experimenting with a branch which allows us to parallelize across blobs. As a corollary, it reduces the precomputation by 50x and is faster on a single thread (the speedup numbers are still being looked into, currently it seems to be ~20%)

kevaundray and others added 3 commits August 27, 2024 12:43
Co-authored-by: Eitan Seri-Levi <eserilev@ucsc.edu>
Co-authored-by: Eitan Seri-Levi <eserilev@ucsc.edu>
Co-authored-by: Eitan Seri-Levi <eserilev@ucsc.edu>
@kevaundray kevaundray changed the base branch from stable to unstable August 27, 2024 12:04
@kevaundray kevaundray changed the title chore!: Update rust_eth_kzg to v0.5.0 (formally known as peerdas-kzg) chore!: Update rust_eth_kzg to v0.5.1 (formally known as peerdas-kzg) Aug 27, 2024
kevaundray added a commit to kevaundray/lighthouse that referenced this pull request Aug 27, 2024
@jimmygchen jimmygchen added the ready-for-review The code is ready for review label Aug 27, 2024
@jimmygchen jimmygchen added the das Data Availability Sampling label Aug 28, 2024
Copy link
Member

@jimmygchen jimmygchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks @kevaundray ❤️

@jimmygchen jimmygchen added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Aug 28, 2024
@jimmygchen
Copy link
Member

@mergify queue

Copy link

mergify bot commented Aug 28, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 5e9cc60

mergify bot added a commit that referenced this pull request Aug 28, 2024
@mergify mergify bot merged commit 5e9cc60 into sigp:unstable Aug 28, 2024
28 checks passed
AgeManning pushed a commit to AgeManning/lighthouse that referenced this pull request Sep 3, 2024
…sigp#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
das Data Availability Sampling ready-for-merge This PR is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants