Skip to content

Commit

Permalink
fix(sigmap-EDAP-04): Miscellaneous General Comments (#228)
Browse files Browse the repository at this point in the history
* fix(sigmap-EDAP-04): Miscellaneous General Comments

* fix(sigmap-EDAP-04): Miscellaneous General Comments - address PR feedback
  • Loading branch information
epociask authored Jan 9, 2025
1 parent 8a17f2e commit cc1b304
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions verify/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,13 @@ import (
"github.com/Layr-Labs/eigenda/encoding/kzg"
)

var (
const (
BytesPerSymbol = 31
MaxCodingRatio = 8
MaxSRSPoints = 1 << 28 // 2^28
MaxAllowedBlobSize = uint64(MaxSRSPoints * BytesPerSymbol / MaxCodingRatio)
SrsOrder = 1 << 28 // 2^28
MaxAllowedBlobSize = uint64(SrsOrder * BytesPerSymbol / MaxCodingRatio)
)

// TODO: should this live in the resources pkg?
// So that if we ever change the SRS files there we can change this value
const srsOrder = 268435456 // 2 ^ 32

var (
// cert verification flags
CertVerificationDisabledFlagName = withFlagPrefix("cert-verification-disabled")
Expand Down Expand Up @@ -125,7 +121,7 @@ func ReadConfig(ctx *cli.Context, edaClientConfig clients.EigenDAClientConfig) C
G1Path: ctx.String(G1PathFlagName),
G2PowerOf2Path: ctx.String(G2PowerOf2PathFlagName),
CacheDir: ctx.String(CachePathFlagName),
SRSOrder: srsOrder,
SRSOrder: SrsOrder,
SRSNumberToLoad: MaxBlobLengthBytes / 32, // # of fr.Elements
NumWorker: uint64(runtime.GOMAXPROCS(0)), // #nosec G115
}
Expand Down

0 comments on commit cc1b304

Please sign in to comment.