challenger

package
v0.0.0-...-2910ca2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Challenger

type Challenger struct {
	Ctx              context.Context
	Cfg              *ChallengerConfig
	EigenDaContract  *bindings.BVMEigenDataLayrChain
	RawEigenContract *bind.BoundContract
	WalletAddr       common.Address
	EigenABI         *abi.ABI
	L1ChainClient    *l1l2client.L1ChainClient
	GraphClient      *graphView.GraphClient
	GraphqlClient    *graphql.Client
	// contains filtered or unexported fields
}

func NewChallenger

func NewChallenger(ctx context.Context, cfg *ChallengerConfig) (*Challenger, error)

If any datastore contains this fraud string

func (*Challenger) Start

func (c *Challenger) Start() error

func (*Challenger) Stop

func (c *Challenger) Stop()

type ChallengerConfig

type ChallengerConfig struct {
	L1Client          *l1l2client.L1ChainClient
	L2Client          *l2ethclient.Client
	EigenContractAddr common.Address
	Logger            *logging.Logger
	PrivKey           *ecdsa.PrivateKey
	GraphProvider     string
	RetrieverSocket   string
	KzgConfig         KzgConfig
	LastStoreNumber   uint64
	Timeout           time.Duration
}

type DataLayrDisclosureProof

type DataLayrDisclosureProof struct {
	Header                    []byte
	Polys                     [][]byte
	MultirevealProofs         []datalayr.MultiRevealProof
	BatchPolyEquivalenceProof [4]*big.Int
	StartingChunkIndex        int
}

func (*DataLayrDisclosureProof) ToDisclosureProofs

type Fraud

type Fraud struct {
	StartingIndex int
}

type FraudProof

type FraudProof struct {
	DataLayrDisclosureProof
	StartingSymbolIndex int
}

type KzgConfig

type KzgConfig struct {
	G1Path    string
	G2Path    string
	TableDir  string
	NumWorker int
	Order     uint64 // Order is the total size of SRS
}

Jump to

Keyboard shortcuts

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