Documentation ¶
Index ¶
- Variables
- func BuildAlphabetPreimage(i *big.Int, letter string) []byte
- func LetterToBytes(letter string) []byte
- type AlphabetTraceProvider
- func (ap *AlphabetTraceProvider) AbsolutePreStateCommitment(_ context.Context) (common.Hash, error)
- func (ap *AlphabetTraceProvider) Get(ctx context.Context, i types.Position) (common.Hash, error)
- func (ap *AlphabetTraceProvider) GetStepData(ctx context.Context, i types.Position) ([]byte, []byte, *types.PreimageOracleData, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrIndexTooLarge = errors.New("index is larger than the maximum index")
)
Functions ¶
func BuildAlphabetPreimage ¶
BuildAlphabetPreimage constructs the claim bytes for the index and state item.
func LetterToBytes ¶
LetterToBytes converts a letter to a 32 byte array
Types ¶
type AlphabetTraceProvider ¶
type AlphabetTraceProvider struct {
// contains filtered or unexported fields
}
AlphabetTraceProvider is a [TraceProvider] that provides claims for specific indices in the given trace.
func NewTraceProvider ¶
func NewTraceProvider(state string, depth uint64) *AlphabetTraceProvider
NewTraceProvider returns a new [AlphabetProvider].
func (*AlphabetTraceProvider) AbsolutePreStateCommitment ¶
func (*AlphabetTraceProvider) GetStepData ¶
func (ap *AlphabetTraceProvider) GetStepData(ctx context.Context, i types.Position) ([]byte, []byte, *types.PreimageOracleData, error)
Click to show internal directories.
Click to hide internal directories.