diff --git a/.env.example b/.env.example index 84f82527..1c434a76 100644 --- a/.env.example +++ b/.env.example @@ -5,25 +5,28 @@ EIGENDA_PROXY_ADDR=127.0.0.1 EIGENDA_PROXY_PORT=3100 # Directory path to SRS tables -EIGENDA_PROXY_EIGENDA_CACHE_PATH= +EIGENDA_PROXY_TARGET_CACHE_PATH= # Directory path to g1.point file -EIGENDA_PROXY_EIGENDA_KZG_G1_PATH= +EIGENDA_PROXY_TARGET_KZG_G1_PATH= # Directory path to g2.point.powerOf2 file -EIGENDA_PROXY_EIGENDA_G2_TAU_PATH= +EIGENDA_PROXY_TARGET_G2_TAU_PATH= # RPC endpoint of the EigenDA disperser -EIGENDA_PROXY_EIGENDA_RPC= +EIGENDA_PROXY_RPC= # Wait time between retries of EigenDA blob status queries (default: 5s) -EIGENDA_PROXY_EIGENDA_STATUS_QUERY_INTERVAL=5s +EIGENDA_PROXY_STATUS_QUERY_INTERVAL=5s + +# Maximum size in string representation (e.g. "10mb", "4 KiB") of blobs to be dispersed and verified using this proxy (default: 2MiB) +EIGENDA_PROXY_MAX_BLOB_LENGTH=2MiB # Timeout for aborting an EigenDA blob dispersal (default: 25m0s) -EIGENDA_PROXY_EIGENDA_STATUS_QUERY_TIMEOUT=25m0s +EIGENDA_PROXY_STATUS_QUERY_TIMEOUT=25m0s # Use TLS when connecting to the EigenDA disperser (default: true) -EIGENDA_PROXY_EIGENDA_GRPC_USE_TLS=true +EIGENDA_PROXY_GRPC_USE_TLS=true # Color the log output if in terminal mode (default: false) EIGENDA_PROXY_LOG_COLOR=false @@ -43,3 +46,6 @@ EIGENDA_PROXY_METRICS_ENABLED=false # Metrics listening port (default: 7300) EIGENDA_PROXY_METRICS_PORT=7300 + +# Private key for signing EigenDA blobs +EIGENDA_PROXY_SIGNER_PRIVATE_KEY_HEX= \ No newline at end of file diff --git a/.gitignore b/.gitignore index 24d3e50c..08205e05 100644 --- a/.gitignore +++ b/.gitignore @@ -27,4 +27,7 @@ go.work e2e/resources/kzg/SRSTables/ ## Vscode -/.vscode \ No newline at end of file +/.vscode + +## Idea +.idea \ No newline at end of file diff --git a/eigenda/config.go b/eigenda/config.go index 4a3e8de5..907f5c29 100644 --- a/eigenda/config.go +++ b/eigenda/config.go @@ -181,7 +181,7 @@ func CLIFlags(envPrefix string) []cli.Flag { &cli.StringFlag{ Name: MaxBlobLengthFlagName, Usage: "Maximum size in string representation (e.g. \"10mb\", \"4 KiB\") of blobs to be dispersed and verified using this proxy. This impacts the number of SRS points loaded into memory.", - EnvVars: prefixEnvVars("TARGET_KZG_G1_PATH"), + EnvVars: prefixEnvVars("MAX_BLOB_LENGTH"), Value: "2MiB", }, &cli.StringFlag{