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

kzg library v2.0.1 #19

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
[submodule "c-kzg-4844"]
path = c-kzg-4844
url = https://github.com/ethereum/c-kzg-4844

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ Clone the repository:
```sh
git clone https://github.com/covalenthq/das-ipfs-pinner
cd das-ipfs-pinner
git submodule update --init --recursive
```

Install dependencies:
Expand Down
1 change: 0 additions & 1 deletion c-kzg-4844
Submodule c-kzg-4844 deleted from 252a6b
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22.3

require (
cloud.google.com/go/pubsub v1.42.0
github.com/ethereum/c-kzg-4844 v1.0.3
github.com/ethereum/c-kzg-4844/v2 v2.0.1
github.com/ethereum/go-ethereum v1.14.8
github.com/ipfs/boxo v0.20.0
github.com/ipfs/go-block-format v0.2.0
Expand Down Expand Up @@ -61,6 +61,7 @@ require (
github.com/docker/go-units v0.5.0 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/elastic/gosigar v0.14.2 // indirect
github.com/ethereum/c-kzg-4844 v1.0.3 // indirect
github.com/facebookgo/atomicfile v0.0.0-20151019160806-2de1f203e7d5 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/flynn/noise v1.1.0 // indirect
Expand Down Expand Up @@ -254,5 +255,3 @@ require (
lukechampine.com/blake3 v1.3.0 // indirect
rsc.io/tmplfunc v0.0.3 // indirect
)

replace github.com/ethereum/c-kzg-4844 => ./c-kzg-4844
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymF
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/ethereum/c-kzg-4844 v1.0.3 h1:IEnbOHwjixW2cTvKRUlAAUOeleV7nNM/umJR+qy4WDs=
github.com/ethereum/c-kzg-4844 v1.0.3/go.mod h1:VewdlzQmpT5QSrVhbBuGoCdFJkpaJlO1aQputP83wc0=
github.com/ethereum/c-kzg-4844/v2 v2.0.1 h1:NuErvd0Ha5gLvvZ1m9Id9UZ11kcqMBUUXsbm7yXcAYI=
github.com/ethereum/c-kzg-4844/v2 v2.0.1/go.mod h1:urP+cLBtKCW4BS5bnA2IXYs1PRGPpXmdotqpBuU6/5s=
github.com/ethereum/go-ethereum v1.14.8 h1:NgOWvXS+lauK+zFukEvi85UmmsS/OkV0N23UZ1VTIig=
github.com/ethereum/go-ethereum v1.14.8/go.mod h1:TJhyuDq0JDppAkFXgqjwpdlQApywnu/m10kFPxh8vvs=
github.com/ethereum/go-verkle v0.1.1-0.20240306133620-7d920df305f0 h1:KrE8I4reeVvf7C1tm8elRjj4BdscTYzz/WAbYyf/JI4=
Expand Down
2 changes: 1 addition & 1 deletion internal/light-client/c-kzg-verifier/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package verifier
import (
"fmt"

ckzg4844 "github.com/ethereum/c-kzg-4844/bindings/go"
ckzg4844 "github.com/ethereum/c-kzg-4844/v2/bindings/go"
)

// KZGVerifier represents a structure to verify KZG commitments.
Expand Down
2 changes: 1 addition & 1 deletion internal/pinner/c-kzg-encoder/datablock.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package ckzgencoder
import (
"errors"

ckzg4844 "github.com/ethereum/c-kzg-4844/bindings/go"
ckzg4844 "github.com/ethereum/c-kzg-4844/v2/bindings/go"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion internal/pinner/c-kzg-encoder/datablock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"testing"

ckzg4844 "github.com/ethereum/c-kzg-4844/bindings/go"
ckzg4844 "github.com/ethereum/c-kzg-4844/v2/bindings/go"
"github.com/ipld/go-ipld-prime/codec/dagcbor"
"github.com/ipld/go-ipld-prime/datamodel"
"github.com/ipld/go-ipld-prime/node/basicnode"
Expand Down
2 changes: 1 addition & 1 deletion internal/pinner/c-kzg-encoder/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"

"github.com/covalenthq/das-ipfs-pinner/internal"
ckzg4844 "github.com/ethereum/c-kzg-4844/bindings/go"
ckzg4844 "github.com/ethereum/c-kzg-4844/v2/bindings/go"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion internal/pinner/c-kzg-encoder/encoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"testing"

ckzg4844 "github.com/ethereum/c-kzg-4844/bindings/go"
ckzg4844 "github.com/ethereum/c-kzg-4844/v2/bindings/go"
logging "github.com/ipfs/go-log/v2"
"golang.org/x/exp/rand"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/pinner/c-kzg-encoder/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"path/filepath"

ckzg4844 "github.com/ethereum/c-kzg-4844/bindings/go"
ckzg4844 "github.com/ethereum/c-kzg-4844/v2/bindings/go"
)

// TrustedSetup is the trusted setup.
Expand Down