Skip to content

Commit

Permalink
chore: Update eigenda dep to v0.8.1 && update tests for 16MB blobs (#100
Browse files Browse the repository at this point in the history
)

* chore: Update eigenda dep to v0.8.1 && update tests for 16MB blobs

* chore: Update eigenda dep to v0.8.1 && update tests for 16MB blobs - fix lint
  • Loading branch information
epociask authored Aug 22, 2024
1 parent de8a877 commit 4cdda99
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions e2e/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ func TestProxyClientWithOversizedBlob(t *testing.T) {
URL: ts.Address(),
}
daClient := client.New(cfg)
// 5MB blob
testPreimage := []byte(e2e.RandString(5_000_0000))
// 17MB blob
testPreimage := []byte(e2e.RandString(17_000_0000))

t.Log("Setting input data on proxy server...")
blobInfo, err := daClient.SetData(ts.Ctx, testPreimage)
Expand Down
2 changes: 1 addition & 1 deletion e2e/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func CreateTestSuite(t *testing.T, useMemory bool, useS3 bool) (TestSuite, func(
SvcManagerAddr: "0xD4A7E1Bd8015057293f0D0A557088c286942e84b", // incompatible with non holeskly networks
CacheDir: "../resources/SRSTables",
G1Path: "../resources/g1.point",
MaxBlobLength: "4mib",
MaxBlobLength: "16mib",
G2PowerOfTauPath: "../resources/g2.point.powerOf2",
PutBlobEncodingVersion: 0x00,
MemstoreEnabled: useMemory,
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/Layr-Labs/eigenda-proxy
go 1.21

require (
github.com/Layr-Labs/eigenda v0.8.1-0.20240819231537-e4af079535b0
github.com/Layr-Labs/eigenda v0.8.1
github.com/consensys/gnark-crypto v0.12.1
github.com/ethereum-optimism/optimism v1.9.0
github.com/ethereum/go-ethereum v1.14.0
Expand Down
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ github.com/DataDog/datadog-go v2.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3
github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
github.com/DataDog/zstd v1.5.5 h1:oWf5W7GtOLgp6bciQYDmhHHjdhYkALu6S/5Ni9ZgSvQ=
github.com/DataDog/zstd v1.5.5/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw=
github.com/Layr-Labs/eigenda v0.8.0 h1:OghLxQDLLJWrjPnGQ5Sykf/0n3tyOtAexdU+CNooK0I=
github.com/Layr-Labs/eigenda v0.8.0/go.mod h1:Nsp+Z7OAQbPvCVq/xqrUies3wBEohKN4bb668CBYvcM=
github.com/Layr-Labs/eigenda v0.8.1-0.20240819231537-e4af079535b0 h1:Q40UqIDcgPZ1VY1tFbQ9kSNWrVxvH7U5GhT9QCRhSbg=
github.com/Layr-Labs/eigenda v0.8.1-0.20240819231537-e4af079535b0/go.mod h1:MzSFbxDQ1/tMcLlfxqz08YubB3rd+E2xme2p7hwP2YM=
github.com/Layr-Labs/eigenda v0.8.1 h1:perEtnBxmbUIjOgI39lNLfEwqzPJpp7d0KWI7xgzoSs=
github.com/Layr-Labs/eigenda v0.8.1/go.mod h1:Nsp+Z7OAQbPvCVq/xqrUies3wBEohKN4bb668CBYvcM=
github.com/Layr-Labs/eigensdk-go v0.1.7-0.20240507215523-7e4891d5099a h1:L/UsJFw9M31FD/WgXTPFB0oxbq9Cu4Urea1xWPMQS7Y=
github.com/Layr-Labs/eigensdk-go v0.1.7-0.20240507215523-7e4891d5099a/go.mod h1:OF9lmS/57MKxS0xpSpX0qHZl0SKkDRpvJIvsGvMN1y8=
github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow=
Expand Down
2 changes: 1 addition & 1 deletion verify/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (v *Verifier) VerifyCommitment(expectedCommit *common.G1Commitment, blob []
if !actualCommit.X.Equal(expectedX) || !actualCommit.Y.Equal(expectedY) {
errMsg += fmt.Sprintf("field elements do not match, x actual commit: %x, x expected commit: %x, ", actualCommit.X.Marshal(), expectedX.Marshal())
errMsg += fmt.Sprintf("y actual commit: %x, y expected commit: %x", actualCommit.Y.Marshal(), expectedY.Marshal())
return fmt.Errorf(errMsg)
return fmt.Errorf("%s", errMsg)
}

return nil
Expand Down

0 comments on commit 4cdda99

Please sign in to comment.