diff --git a/.env.example.holesky b/.env.example.holesky index 776174c..eaadd43 100644 --- a/.env.example.holesky +++ b/.env.example.holesky @@ -35,7 +35,7 @@ EIGENDA_PROXY_SERVICE_MANAGER_ADDR=0xD4A7E1Bd8015057293f0D0A557088c286942e84b # EIGENDA_PROXY_GRPC_DISABLE_TLS=false # Maximum blob length to be written or read from EigenDA. Determines the number of SRS points loaded into memory for KZG commitments. Example units: '30MiB', '4Kb', '30MB'. Maximum size slightly exceeds 1GB. -# EIGENDA_PROXY_MAX_BLOB_LENGTH=4MiB +# EIGENDA_PROXY_MAX_BLOB_LENGTH=16MiB # Blob encoding version to use when writing blobs from the high-level interface # EIGENDA_PROXY_PUT_BLOB_ENCODING_VERSION=0 diff --git a/.env.example.mainnet b/.env.example.mainnet index 75fa6e2..5ccc746 100644 --- a/.env.example.mainnet +++ b/.env.example.mainnet @@ -34,7 +34,7 @@ EIGENDA_PROXY_SERVICE_MANAGER_ADDR=0x870679E138bCdf293b7Ff14dD44b70FC97e12fc0 # EIGENDA_PROXY_GRPC_DISABLE_TLS=false # Maximum blob length to be written or read from EigenDA. Determines the number of SRS points loaded into memory for KZG commitments. Example units: '30MiB', '4Kb', '30MB'. Maximum size slightly exceeds 1GB. -# EIGENDA_PROXY_MAX_BLOB_LENGTH=4MiB +# EIGENDA_PROXY_MAX_BLOB_LENGTH=16MiB # Blob encoding version to use when writing blobs from the high-level interface # EIGENDA_PROXY_PUT_BLOB_ENCODING_VERSION=0 diff --git a/README.md b/README.md index 2c6f0d7..75f6757 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ In order to disperse to the EigenDA network in production, or at high throughput | `--eigenda-eth-rpc` | | `$EIGENDA_PROXY_ETH_RPC` | JSON RPC node endpoint for the Ethereum network used for finalizing DA blobs. See available list here: https://docs.eigenlayer.xyz/eigenda/networks/ | | `--eigenda-g1-path` | `"resources/g1.point"` | `$EIGENDA_PROXY_TARGET_KZG_G1_PATH` | Directory path to g1.point file. | | `--eigenda-g2-tau-path` | `"resources/g2.point.powerOf2"` | `$EIGENDA_PROXY_TARGET_G2_TAU_PATH` | Directory path to g2.point.powerOf2 file. | -| `--eigenda-max-blob-length` | `"4MiB"` | `$EIGENDA_PROXY_MAX_BLOB_LENGTH` | Maximum blob length to be written or read from EigenDA. Determines the number of SRS points loaded into memory for KZG commitments. Example units: '30MiB', '4Kb', '30MB'. Maximum size slightly exceeds 1GB. | +| `--eigenda-max-blob-length` | `"16MiB"` | `$EIGENDA_PROXY_MAX_BLOB_LENGTH` | Maximum blob length to be written or read from EigenDA. Determines the number of SRS points loaded into memory for KZG commitments. Example units: '30MiB', '4Kb', '30MB'. Maximum size slightly exceeds 1GB. | | `--eigenda-put-blob-encoding-version` | `0` | `$EIGENDA_PROXY_PUT_BLOB_ENCODING_VERSION` | Blob encoding version to use when writing blobs from the high-level interface. | | `--eigenda-response-timeout` | `60s` | `$EIGENDA_PROXY_RESPONSE_TIMEOUT` | Total time to wait for a response from the EigenDA disperser. Default is 60 seconds. | | `--eigenda-signer-private-key-hex` | | `$EIGENDA_PROXY_SIGNER_PRIVATE_KEY_HEX` | Hex-encoded signer private key. This key should not be associated with an Ethereum address holding any funds. | diff --git a/e2e/server_test.go b/e2e/server_test.go index c4d3192..5c213ce 100644 --- a/e2e/server_test.go +++ b/e2e/server_test.go @@ -110,8 +110,8 @@ func TestProxyServerWithLargeBlob(t *testing.T) { URL: ts.Address(), } daClient := client.New(cfg) - // 4MB blob - testPreimage := []byte(e2e.RandString(4_000_000)) + // 16MB blob + testPreimage := []byte(e2e.RandString(16_000_000)) t.Log("Setting input data on proxy server...") blobInfo, err := daClient.SetData(ts.Ctx, testPreimage) diff --git a/server/config.go b/server/config.go index 77edb71..ff1d084 100644 --- a/server/config.go +++ b/server/config.go @@ -372,7 +372,7 @@ func CLIFlags() []cli.Flag { Name: MaxBlobLengthFlagName, Usage: "Maximum blob length to be written or read from EigenDA. Determines the number of SRS points loaded into memory for KZG commitments. Example units: '30MiB', '4Kb', '30MB'. Maximum size slightly exceeds 1GB.", EnvVars: prefixEnvVars("MAX_BLOB_LENGTH"), - Value: "4MiB", + Value: "16MiB", }, &cli.StringFlag{ Name: G1PathFlagName, diff --git a/store/router.go b/store/router.go index 460c8df..641bc08 100644 --- a/store/router.go +++ b/store/router.go @@ -189,7 +189,7 @@ func (r *Router) multiSourceRead(ctx context.Context, commitment []byte, fallbac continue } // verify cert:data using EigenDA verification checks - err = r.eigenda.Verify(key, data) + err = r.eigenda.Verify(commitment, data) if err != nil { log.Warn("Failed to verify blob", "err", err, "backend", src.BackendType()) continue