crate-crypto / go-eth-kzg

Apache License 2.0
29 stars 22 forks source link

github.com/ethereum/go-ethereum/crypto/kzg4844 #64

Closed ersanyakit closed 5 months ago

ersanyakit commented 5 months ago

github.com/ethereum/go-ethereum/crypto/kzg4844

../../../../go/pkg/mod/github.com/ethereum/go-ethereum@v1.13.14/crypto/kzg4844/kzg4844_gokzg.go:52:49: cannot use (gokzg4844.Blob)(blob) (value of type gokzg4844.Blob) as gokzg4844.Blob value in argument to context.BlobToKZGCommitment ../../../../go/pkg/mod/github.com/ethereum/go-ethereum@v1.13.14/crypto/kzg4844/kzg4844_gokzg.go:64:47: cannot use (gokzg4844.Blob)(blob) (value of type gokzg4844.Blob) as gokzg4844.Blob value in argument to context.ComputeKZGProof ../../../../go/pkg/mod/github.com/ethereum/go-ethereum@v1.13.14/crypto/kzg4844/kzg4844_gokzg.go:86:44: cannot use (gokzg4844.Blob)(blob) (value of type gokzg4844.Blob) as gokzg4844.Blob value in argument to context.ComputeBlobKZGProof ../../../../go/pkg/mod/github.com/ethereum/go-ethereum@v1.13.14/crypto/kzg4844/kzg4844_gokzg.go:97:36: cannot use (gokzg4844.Blob)(blob) (value of type gokzg4844.Blob) as gokzg4844.Blob value in argument to context.VerifyBlobKZGProof

M1chlCZ commented 5 months ago

Put this at the end of your go.mod

replace github.com/crate-crypto/go-kzg-4844 v1.0.0 => github.com/crate-crypto/go-kzg-4844 v0.7.0

That will solve the problem

kevaundray commented 5 months ago

This happened because the v1.0.0 version is a breaking change from 0.7.0 -- I'm going to close this as its expected. Feel free to re-open if the problem persists.