crypto: move from go-kzg-4844 to go-eth-kzg

This commit is contained in:
Marius van der Wijden 2025-03-11 14:26:55 +01:00 committed by MariusVanDerWijden
parent d9848ea6b2
commit 3691f5746e
2 changed files with 5 additions and 1 deletions

View file

@ -183,5 +183,8 @@ func IsValidVersionedHash(h []byte) bool {
}
func ComputeCells(blob *Blob) ([]Proof, error) {
if useCKZG.Load() {
return ckzgComputeCells(blob)
}
return gokzgComputeCells(blob)
}

1
go.mod
View file

@ -101,6 +101,7 @@ require (
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect
github.com/consensys/bavard v0.1.27 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.5 // indirect
github.com/crate-crypto/go-eth-kzg v1.3.0 // indirect
github.com/deepmap/oapi-codegen v1.6.0 // indirect
github.com/dlclark/regexp2 v1.7.0 // indirect
github.com/ethereum/c-kzg-4844/v2 v2.0.1 // indirect