Documentation
¶
Index ¶
Constants ¶
View Source
const ( RPCFlagName = "eigenda-rpc" StatusQueryRetryIntervalFlagName = "eigenda-status-query-retry-interval" StatusQueryTimeoutFlagName = "eigenda-status-query-timeout" DisableTlsFlagName = "eigenda-disable-tls" ResponseTimeoutFlagName = "eigenda-response-timeout" CustomQuorumIDsFlagName = "eigenda-custom-quorum-ids" SignerPrivateKeyHexFlagName = "eigenda-signer-private-key-hex" PutBlobEncodingVersionFlagName = "eigenda-put-blob-encoding-version" DisablePointVerificationModeFlagName = "eigenda-disable-point-verification-mode" // Kzg flags G1PathFlagName = "eigenda-g1-path" G2TauFlagName = "eigenda-g2-tau-path" CachePathFlagName = "eigenda-cache-path" MaxBlobLengthFlagName = "eigenda-max-blob-length" )
View Source
const BytesPerSymbol = 31
View Source
const MaxCodingRatio = 8
Variables ¶
View Source
var ErrCommitmentLength = errors.New("invalid commitment length")
ErrCommitmentLength is returned when the commitment length is invalid.
View Source
var ErrCommitmentMismatch = errors.New("commitment mismatch")
ErrCommitmentMismatch is returned when the commitment does not match the given input.
View Source
var ErrInvalidCommitment = errors.New("invalid commitment")
ErrInvalidCommitment is returned when the commitment cannot be parsed into a known commitment type.
View Source
var MaxAllowedBlobSize = uint64(MaxSRSPoints * BytesPerSymbol / MaxCodingRatio)
View Source
var MaxSRSPoints = math.Pow(2, 28)
Functions ¶
Types ¶
type Commitment ¶
type Commitment []byte
func DecodeCommitment ¶
func DecodeCommitment(commitment []byte) (Commitment, error)
DecodeCommitment verifies and decodes an EigenDACommit from raw encoded bytes.
func StringToCommit ¶
func StringToCommit(key string) (Commitment, error)
func (Commitment) Encode ¶
func (c Commitment) Encode() []byte
type Config ¶
type Config struct { ClientConfig clients.EigenDAClientConfig // The blob encoding version to use when writing blobs from the high level interface. PutBlobEncodingVersion codecs.BlobEncodingVersion // KZG vars CacheDir string G1Path string G2Path string MaxBlobLength string G2PowerOfTauPath string // contains filtered or unexported fields }
func ReadConfig ¶
func ReadConfig(ctx *cli.Context) Config
NewConfig parses the Config from the provided flags or environment variables.
func (*Config) GetMaxBlobLength ¶
type EigenDAVersion ¶
type EigenDAVersion byte
EigenDAVersion is the version being used for EigenDA.
const (
EigenV0 EigenDAVersion = 0x00
)
Click to show internal directories.
Click to hide internal directories.