Documentation ¶
Index ¶
- Variables
- type CannonMetricer
- type CannonPrestateProvider
- type CannonTraceProvider
- func (p *CannonTraceProvider) AbsolutePreStateCommitment(_ context.Context) (common.Hash, error)
- func (p *CannonTraceProvider) Get(ctx context.Context, pos types.Position) (common.Hash, error)
- func (p *CannonTraceProvider) GetStepData(ctx context.Context, pos types.Position) ([]byte, []byte, *types.PreimageOracleData, error)
- func (p *CannonTraceProvider) SetMaxDepth(gameDepth types.Depth)
- type CannonTraceProviderForTest
- type Executor
- type GameInputsSource
- type L1HeadSource
- type L2HeaderSource
- type LocalGameInputs
- type PreimageOpt
- type ProofGenerator
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidScalarValue = errors.New("invalid scalar value") ErrInvalidBlobKeyPreimage = errors.New("invalid blob key preimage") )
Functions ¶
This section is empty.
Types ¶
type CannonMetricer ¶
type CannonMetricer interface {
RecordCannonExecutionTime(t float64)
}
type CannonPrestateProvider ¶ added in v1.4.2
type CannonPrestateProvider struct {
// contains filtered or unexported fields
}
func NewPrestateProvider ¶ added in v1.4.2
func NewPrestateProvider(prestate string) *CannonPrestateProvider
func (*CannonPrestateProvider) AbsolutePreStateCommitment ¶ added in v1.4.2
type CannonTraceProvider ¶
type CannonTraceProvider struct {
// contains filtered or unexported fields
}
func NewTraceProvider ¶
func NewTraceProvider(logger log.Logger, m CannonMetricer, cfg *config.Config, localInputs LocalGameInputs, dir string, gameDepth types.Depth) *CannonTraceProvider
func (*CannonTraceProvider) AbsolutePreStateCommitment ¶
func (*CannonTraceProvider) GetStepData ¶
func (p *CannonTraceProvider) GetStepData(ctx context.Context, pos types.Position) ([]byte, []byte, *types.PreimageOracleData, error)
func (*CannonTraceProvider) SetMaxDepth ¶ added in v1.2.0
func (p *CannonTraceProvider) SetMaxDepth(gameDepth types.Depth)
type CannonTraceProviderForTest ¶ added in v1.5.0
type CannonTraceProviderForTest struct {
*CannonTraceProvider
}
CannonTraceProviderForTest is a CannonTraceProvider that can find the step referencing the preimage read Only to be used for testing
func NewTraceProviderForTest ¶ added in v1.5.0
func NewTraceProviderForTest(logger log.Logger, m CannonMetricer, cfg *config.Config, localInputs LocalGameInputs, dir string, gameDepth types.Depth) *CannonTraceProviderForTest
func (*CannonTraceProviderForTest) FindStep ¶ added in v1.5.1
func (p *CannonTraceProviderForTest) FindStep(ctx context.Context, start uint64, preimage PreimageOpt) (uint64, error)
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func NewExecutor(logger log.Logger, m CannonMetricer, cfg *config.Config, inputs LocalGameInputs) *Executor
type GameInputsSource ¶
type L1HeadSource ¶ added in v1.4.2
type L2HeaderSource ¶ added in v1.4.2
type LocalGameInputs ¶
type LocalGameInputs struct { L1Head common.Hash L2Head common.Hash L2OutputRoot common.Hash L2Claim common.Hash L2BlockNumber *big.Int }
func FetchLocalInputs ¶ added in v1.4.2
func FetchLocalInputs(ctx context.Context, caller GameInputsSource, l2Client L2HeaderSource) (LocalGameInputs, error)
func FetchLocalInputsFromProposals ¶ added in v1.4.2
type PreimageOpt ¶ added in v1.5.1
type PreimageOpt func() preimageOpts
func FirstKeccakPreimageLoad ¶ added in v1.5.1
func FirstKeccakPreimageLoad() PreimageOpt
func FirstPrecompilePreimageLoad ¶ added in v1.7.2
func FirstPrecompilePreimageLoad() PreimageOpt
func FirstPreimageLoadOfType ¶ added in v1.5.1
func FirstPreimageLoadOfType(preimageType string) PreimageOpt
func PreimageLargerThan ¶ added in v1.5.1
func PreimageLargerThan(size int) PreimageOpt
func PreimageLoad ¶ added in v1.7.2
func PreimageLoad(key preimage.Key, offset uint32) PreimageOpt
Click to show internal directories.
Click to hide internal directories.