eigenda

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store does storage interactions and verifications for blobs with DA.

func NewStore

func NewStore(client *clients.EigenDAClient,
	v *verify.Verifier, log log.Logger, cfg *StoreConfig) (*Store, error)

func (Store) BackendType

func (e Store) BackendType() store.BackendType

Backend returns the backend type for EigenDA Store

func (Store) Get

func (e Store) Get(ctx context.Context, key []byte) ([]byte, error)

Get fetches a blob from DA using certificate fields and verifies blob against commitment to ensure data is valid and non-tampered.

func (Store) Put

func (e Store) Put(ctx context.Context, value []byte) ([]byte, error)

Put disperses a blob for some pre-image and returns the associated RLP encoded certificate commit.

func (Store) Stats

func (e Store) Stats() *store.Stats

Entries are a no-op for EigenDA Store

func (Store) Verify

func (e Store) Verify(key []byte, value []byte) error

Key is used to recover certificate fields and that verifies blob against commitment to ensure data is valid and non-tampered.

type StoreConfig

type StoreConfig struct {
	MaxBlobSizeBytes uint64
	// the # of Ethereum blocks to wait after the EigenDA L1BlockReference # before attempting to verify
	// & accredit a blob
	EthConfirmationDepth uint64

	// total duration time that client waits for blob to confirm
	StatusQueryTimeout time.Duration
}

Jump to

Keyboard shortcuts

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