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

Add option to select KZG library for PeerDAS #6107

Open
Tracked by #4983
jimmygchen opened this issue Jul 16, 2024 · 0 comments
Open
Tracked by #4983

Add option to select KZG library for PeerDAS #6107

jimmygchen opened this issue Jul 16, 2024 · 0 comments
Labels
das Data Availability Sampling

Comments

@jimmygchen
Copy link
Member

jimmygchen commented Jul 16, 2024

Description

We've recently switched from the c-kzg library to the Rust peerdas-kzg library on the das branch (#5941). The purpose for the switch was to:

  1. Try out a new alternative to c-kzg;
  2. Allow us to merge das branch to unstable without having to update c-kzg to a development version

However we've now lost the option to run the das branch with ckzg, which has been quite stable for a while. We've recently run into a few issues with peerdas-kzg, including slow startup time and stack overflow during block production (#6105). Therefore I think it would be great to have the option to use ckzg library, especially for public denvets, where a small number of reliable supernodes is required.

Ideally we want to be able to:

  1. maintain the ckzg library version for the mainnet code path
  2. optionally include the ckzg peerdas library when it's enabled via a feature flag, so both ckzg library will co-exist when this ckzg-peerdas feature is enabled, however this library will only be referenced by the PeerDAS portion of the code.
  3. allow selecting the ckzg-peerdas library via a hidden runtime flag
@jimmygchen jimmygchen added the das Data Availability Sampling label Jul 16, 2024
@jimmygchen jimmygchen mentioned this issue Aug 21, 2024
52 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
das Data Availability Sampling
Projects
None yet
Development

No branches or pull requests

1 participant