Skip to content

Bug: Incorrect value-to-pointer usage in crypto/kzg4844/kzg4844_gokzg.go #189

@christiankakesa

Description

@christiankakesa

Host platform

Ubuntu 22.04.5 LTS x86_64 - go version go1.23.9 linux/amd64

What is the version of libevm

v1.13.14-0.2.0.release

What's the problem 🤔

There is a type mismatch in the kzg4844_gokzg.go file in the crypto/kzg4844 package. The library passes a value of type gokzg4844.Blob where a pointer (*gokzg4844.Blob) is required by context methods, which leads to compilation errors.

Share your logs if needed

# github.com/ava-labs/libevm/crypto/kzg4844
../../go/pkg/mod/github.com/ava-labs/[email protected]/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/ava-labs/[email protected]/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/ava-labs/[email protected]/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/ava-labs/[email protected]/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

Share your configuration(s) if needed


Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions