alphabet

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: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	L2ClaimBlockNumberLocalIndex = 4
)

Variables

View Source
var (
	ErrIndexTooLarge = errors.New("index is larger than the maximum index")
)
View Source
var PrestateProvider = &alphabetPrestateProvider{}

PrestateProvider provides the alphabet VM prestate

Functions

func BuildAlphabetPreimage

func BuildAlphabetPreimage(traceIndex *big.Int, claim *big.Int) []byte

BuildAlphabetPreimage constructs the claim bytes for the index and claim.

Types

type AlphabetTraceProvider

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

AlphabetTraceProvider is a [TraceProvider] that monotonically increments the starting l2 block number as the claim value.

func NewTraceProvider

func NewTraceProvider(startingBlockNumber *big.Int, depth types.Depth) *AlphabetTraceProvider

NewTraceProvider returns a new [AlphabetProvider].

func (*AlphabetTraceProvider) AbsolutePreStateCommitment

func (ap *AlphabetTraceProvider) AbsolutePreStateCommitment(_ context.Context) (common.Hash, error)

func (*AlphabetTraceProvider) Get

Get returns the claim value at the given index in the trace.

func (*AlphabetTraceProvider) GetStepData

Jump to

Keyboard shortcuts

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