Skip to content

crypto/kzg4844: add ComputeCells functionality #31378

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

Merged
merged 8 commits into from
Apr 29, 2025

Conversation

MariusVanDerWijden
Copy link
Member

@MariusVanDerWijden MariusVanDerWijden commented Mar 13, 2025

For PeerDAS, we need to compute cell proofs. Both ckzg and gokzg support computing these cell proofs.
This PR does the following:

  • Update the go-kzg library from "github.com/crate-crypto/go-kzg-4844" to "github.com/crate-crypto/go-eth-kzg" which will be the new upstream for go-kzg moving forward
  • Update ckzg from v1.0.0 to v2.0.1 and switch to /v2
  • Updates the trusted setup to contain the g1 points both in lagrange and monomial form
  • Expose ComputeCells to compute the cell proofs

@MariusVanDerWijden
Copy link
Member Author

Problem rn is that gokzg startup is much slower now: crate-crypto/go-eth-kzg#110

@rjl493456442 rjl493456442 self-assigned this Mar 17, 2025
@rjl493456442
Copy link
Member

Please run go mod tidy to get rid of the old dependency

@MariusVanDerWijden
Copy link
Member Author

TODO: rebase and rerun ci

@fjl fjl merged commit 947fd3a into ethereum:master Apr 29, 2025
3 of 4 checks passed
@s1na s1na mentioned this pull request May 2, 2025
0g-wh pushed a commit to 0g-wh/0g-geth that referenced this pull request May 8, 2025
For PeerDAS, we need to compute cell proofs. Both ckzg and gokzg support
computing these cell proofs.
This PR does the following:

- Update the go-kzg library from "github.com/crate-crypto/go-kzg-4844"
to "github.com/crate-crypto/go-eth-kzg" which will be the new upstream
for go-kzg moving forward
- Update ckzg from v1.0.0 to v2.0.1 and switch to /v2
- Updates the trusted setup to contain the g1 points both in lagrange
and monomial form
- Expose `ComputeCells` to compute the cell proofs
fjl pushed a commit that referenced this pull request May 13, 2025
I saw in #31378 introduced
github.com/crate-crypto/go-eth-kzg to calculate the kzg hash, and
github.com/crate-crypto/go-kzg-4844 was only used in the test files, so
propose to drop it with go-eth-kzg instead
Dargon789 pushed a commit to Dargon789/go-ethereum that referenced this pull request May 27, 2025
…eum#31806)

I saw in ethereum#31378 introduced
github.com/crate-crypto/go-eth-kzg to calculate the kzg hash, and
github.com/crate-crypto/go-kzg-4844 was only used in the test files, so
propose to drop it with go-eth-kzg instead
2dvorak added a commit to 2dvorak/kaia that referenced this pull request Jun 17, 2025
da1suk8 pushed a commit to da1suk8/kaia that referenced this pull request Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants