eigenda

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 13 Imported by: 0

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 MaxSRSPoints = math.Pow(2, 28)

Functions

func CLIFlags

func CLIFlags(envPrefix string) []cli.Flag

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) Check

func (m Config) Check() error

func (*Config) GetMaxBlobLength

func (c *Config) GetMaxBlobLength() (uint64, error)

func (*Config) KzgConfig

func (c *Config) KzgConfig() *kzg.KzgConfig

type EigenDAVersion

type EigenDAVersion byte

EigenDAVersion is the version being used for EigenDA.

const (
	EigenV0 EigenDAVersion = 0x00
)

type ExtDAType

type ExtDAType byte

ExtDAType is the DA provider type.

const (
	EigenDA ExtDAType = 0x00
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL