disputegame

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsteriscFactoryHelper

type AsteriscFactoryHelper struct {
	op_e2e_disputegame.FactoryHelper
}

func (*AsteriscFactoryHelper) CreateBisectionGameExtraData

func (h *AsteriscFactoryHelper) CreateBisectionGameExtraData(l2Node string, l2BlockNumber uint64, cfg *op_e2e_disputegame.GameCfg) []byte

CreateBisectionGameExtraData overrides op_e2e_disputegame.FactoryHelper CreateBisectionGameExtraData method Identical to FactoryHelper implementation

func (*AsteriscFactoryHelper) GetL1Head

GetL1Head overrides op_e2e_disputegame.FactoryHelper GetL1Head method Identical to FactoryHelper implementation

func (*AsteriscFactoryHelper) PreimageHelper

func (h *AsteriscFactoryHelper) PreimageHelper(ctx context.Context) *preimage.Helper

PreimageHelper overrides op_e2e_disputegame.FactoryHelper PreimageHelper method

func (*AsteriscFactoryHelper) StartChallenger

func (h *AsteriscFactoryHelper) StartChallenger(ctx context.Context, name string, options ...op_e2e_challenger.Option) *op_e2e_challenger.Helper

StartChallenger overrides op_e2e_disputegame.FactoryHelper StartChallenger method

func (*AsteriscFactoryHelper) StartOutputAsteriscGame

func (h *AsteriscFactoryHelper) StartOutputAsteriscGame(ctx context.Context, l2Node string, l2BlockNumber uint64, rootClaim common.Hash, opts ...op_e2e_disputegame.GameOpt) *OutputAsteriscGameHelper

func (*AsteriscFactoryHelper) StartOutputAsteriscGameWithCorrectRoot

func (h *AsteriscFactoryHelper) StartOutputAsteriscGameWithCorrectRoot(ctx context.Context, l2Node string, l2BlockNumber uint64, opts ...op_e2e_disputegame.GameOpt) *OutputAsteriscGameHelper

func (*AsteriscFactoryHelper) WaitForBlock

func (h *AsteriscFactoryHelper) WaitForBlock(l2Node string, l2BlockNumber uint64, cfg *op_e2e_disputegame.GameCfg)

WaitForBlock overrides op_e2e_disputegame.FactoryHelper WaitForBlock method Identical to FactoryHelper implementation

type OutputAsteriscGameHelper

type OutputAsteriscGameHelper struct {
	op_e2e_disputegame.OutputCannonGameHelper
}

func (*OutputAsteriscGameHelper) ChallengeToPreimageLoad

func (g *OutputAsteriscGameHelper) ChallengeToPreimageLoad(ctx context.Context, outputRootClaim *op_e2e_disputegame.ClaimHelper, challengerKey *ecdsa.PrivateKey, preimage utils.PreimageOpt, preimageCheck op_e2e_disputegame.PreimageLoadCheck, preloadPreimage bool)

ChallengeToPreimageLoad overrides op_e2e_disputegame.OutputCannonGameHelper ChallengeToPreimageLoad method ChallengeToPreimageLoad challenges the supplied execution root claim by inducing a step that requires a preimage to be loaded It does this by: 1. Identifying the first state transition that loads a global preimage 2. Descending the execution game tree to reach the step that loads the preimage 3. Asserting that the preimage was indeed loaded by an honest challenger (assuming the preimage is not preloaded) This expects an odd execution game depth in order for the honest challenger to step on our leaf claim

func (*OutputAsteriscGameHelper) CreateHonestActor

CreateHonestActor overrides op_e2e_disputegame.OutputCannonGameHelper CreateHonestActor method

func (*OutputAsteriscGameHelper) CreateStepLargePreimageLoadCheck

func (g *OutputAsteriscGameHelper) CreateStepLargePreimageLoadCheck(ctx context.Context, sender common.Address) op_e2e_disputegame.PreimageLoadCheck

CreateStepLargePreimageLoadCheck overrides op_e2e_disputegame.OutputCannonGameHelper CreateStepLargePreimageLoadCheck method Identical to OutputCannonGameHelper implementation

func (*OutputAsteriscGameHelper) CreateStepPreimageLoadCheck

func (g *OutputAsteriscGameHelper) CreateStepPreimageLoadCheck(ctx context.Context) op_e2e_disputegame.PreimageLoadCheck

CreateStepPreimageLoadCheck overrides op_e2e_disputegame.OutputCannonGameHelper CreateStepPreimageLoadCheck method Identical to OutputCannonGameHelper implementation

func (*OutputAsteriscGameHelper) StartChallenger

func (g *OutputAsteriscGameHelper) StartChallenger(
	ctx context.Context,
	name string,
	options ...op_e2e_challenger.Option,
) *op_e2e_challenger.Helper

StartChallenger overrides op_e2e_disputegame.OutputCannonGameHelper StartChallenger method

func (*OutputAsteriscGameHelper) VerifyPreimage

func (g *OutputAsteriscGameHelper) VerifyPreimage(ctx context.Context, outputRootClaim *op_e2e_disputegame.ClaimHelper, preimageKey preimage.Key)

VerifyPreimage overrides op_e2e_disputegame.OutputCannonGameHelper VerifyPreimage method

Jump to

Keyboard shortcuts

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