solver

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrStepNonLeafNode = errors.New("cannot step on non-leaf claims")
)

Functions

This section is empty.

Types

type GameSolver

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

func NewGameSolver

func NewGameSolver(gameDepth types.Depth, trace types.TraceAccessor) *GameSolver

func (*GameSolver) AgreeWithRootClaim added in v1.4.2

func (s *GameSolver) AgreeWithRootClaim(ctx context.Context, game types.Game) (bool, error)

func (*GameSolver) CalculateNextActions

func (s *GameSolver) CalculateNextActions(ctx context.Context, game types.Game) ([]types.Action, error)

type StepData

type StepData struct {
	LeafClaim  types.Claim
	IsAttack   bool
	PreState   []byte
	ProofData  []byte
	OracleData *types.PreimageOracleData
}

Jump to

Keyboard shortcuts

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