rollkit

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthSequencing        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSequencing          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSequencing = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterBatchVerifierServer

func RegisterBatchVerifierServer(s *grpc.Server, srv BatchVerifierServer)

func RegisterSequencerInputServer

func RegisterSequencerInputServer(s *grpc.Server, srv SequencerInputServer)

func RegisterSequencerOutputServer

func RegisterSequencerOutputServer(s *grpc.Server, srv SequencerOutputServer)

Types

type Batch

type Batch struct {
	Transactions [][]byte `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
}

Batch holds a list of transactions

func (*Batch) Descriptor

func (*Batch) Descriptor() ([]byte, []int)

func (*Batch) GetTransactions

func (m *Batch) GetTransactions() [][]byte

func (*Batch) Marshal

func (m *Batch) Marshal() (dAtA []byte, err error)

func (*Batch) MarshalTo

func (m *Batch) MarshalTo(dAtA []byte) (int, error)

func (*Batch) MarshalToSizedBuffer

func (m *Batch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Batch) ProtoMessage

func (*Batch) ProtoMessage()

func (*Batch) Reset

func (m *Batch) Reset()

func (*Batch) Size

func (m *Batch) Size() (n int)

func (*Batch) String

func (m *Batch) String() string

func (*Batch) Unmarshal

func (m *Batch) Unmarshal(dAtA []byte) error

func (*Batch) XXX_DiscardUnknown

func (m *Batch) XXX_DiscardUnknown()

func (*Batch) XXX_Marshal

func (m *Batch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Batch) XXX_Merge

func (m *Batch) XXX_Merge(src proto.Message)

func (*Batch) XXX_Size

func (m *Batch) XXX_Size() int

func (*Batch) XXX_Unmarshal

func (m *Batch) XXX_Unmarshal(b []byte) error

type BatchVerifierClient

type BatchVerifierClient interface {
	// VerifyBatch ...
	VerifyBatch(ctx context.Context, in *Batch, opts ...grpc.CallOption) (*VerificationResponse, error)
}

BatchVerifierClient is the client API for BatchVerifier service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewBatchVerifierClient

func NewBatchVerifierClient(cc *grpc.ClientConn) BatchVerifierClient

type BatchVerifierServer

type BatchVerifierServer interface {
	// VerifyBatch ...
	VerifyBatch(context.Context, *Batch) (*VerificationResponse, error)
}

BatchVerifierServer is the server API for BatchVerifier service.

type SequencerInputClient

type SequencerInputClient interface {
	// SubmitRollupTransaction ...
	SubmitRollupTransaction(ctx context.Context, in *SubmitRollupTransactionRequest, opts ...grpc.CallOption) (*SubmitRollupTransactionResponse, error)
}

SequencerInputClient is the client API for SequencerInput service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSequencerInputClient

func NewSequencerInputClient(cc *grpc.ClientConn) SequencerInputClient

type SequencerInputServer

type SequencerInputServer interface {
	// SubmitRollupTransaction ...
	SubmitRollupTransaction(context.Context, *SubmitRollupTransactionRequest) (*SubmitRollupTransactionResponse, error)
}

SequencerInputServer is the server API for SequencerInput service.

type SequencerOutputClient

type SequencerOutputClient interface {
	// SubmitRollupTransaction ...
	GetNextBatch(ctx context.Context, in *Batch, opts ...grpc.CallOption) (*Batch, error)
}

SequencerOutputClient is the client API for SequencerOutput service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSequencerOutputClient

func NewSequencerOutputClient(cc *grpc.ClientConn) SequencerOutputClient

type SequencerOutputServer

type SequencerOutputServer interface {
	// SubmitRollupTransaction ...
	GetNextBatch(context.Context, *Batch) (*Batch, error)
}

SequencerOutputServer is the server API for SequencerOutput service.

type SubmitRollupTransactionRequest

type SubmitRollupTransactionRequest struct {
	// the unhashed rollup id
	RollupId []byte `protobuf:"bytes,1,opt,name=rollup_id,json=rollupId,proto3" json:"rollup_id,omitempty"`
	// the raw data bytes of the rollup transaction
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
}

SubmitRollupTransactionRequest ...

func (*SubmitRollupTransactionRequest) Descriptor

func (*SubmitRollupTransactionRequest) Descriptor() ([]byte, []int)

func (*SubmitRollupTransactionRequest) GetData

func (m *SubmitRollupTransactionRequest) GetData() []byte

func (*SubmitRollupTransactionRequest) GetRollupId

func (m *SubmitRollupTransactionRequest) GetRollupId() []byte

func (*SubmitRollupTransactionRequest) Marshal

func (m *SubmitRollupTransactionRequest) Marshal() (dAtA []byte, err error)

func (*SubmitRollupTransactionRequest) MarshalTo

func (m *SubmitRollupTransactionRequest) MarshalTo(dAtA []byte) (int, error)

func (*SubmitRollupTransactionRequest) MarshalToSizedBuffer

func (m *SubmitRollupTransactionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SubmitRollupTransactionRequest) ProtoMessage

func (*SubmitRollupTransactionRequest) ProtoMessage()

func (*SubmitRollupTransactionRequest) Reset

func (m *SubmitRollupTransactionRequest) Reset()

func (*SubmitRollupTransactionRequest) Size

func (m *SubmitRollupTransactionRequest) Size() (n int)

func (*SubmitRollupTransactionRequest) String

func (*SubmitRollupTransactionRequest) Unmarshal

func (m *SubmitRollupTransactionRequest) Unmarshal(dAtA []byte) error

func (*SubmitRollupTransactionRequest) XXX_DiscardUnknown

func (m *SubmitRollupTransactionRequest) XXX_DiscardUnknown()

func (*SubmitRollupTransactionRequest) XXX_Marshal

func (m *SubmitRollupTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SubmitRollupTransactionRequest) XXX_Merge

func (m *SubmitRollupTransactionRequest) XXX_Merge(src proto.Message)

func (*SubmitRollupTransactionRequest) XXX_Size

func (m *SubmitRollupTransactionRequest) XXX_Size() int

func (*SubmitRollupTransactionRequest) XXX_Unmarshal

func (m *SubmitRollupTransactionRequest) XXX_Unmarshal(b []byte) error

type SubmitRollupTransactionResponse

type SubmitRollupTransactionResponse struct {
}

SubmitRollupTransactionResponse ...

func (*SubmitRollupTransactionResponse) Descriptor

func (*SubmitRollupTransactionResponse) Descriptor() ([]byte, []int)

func (*SubmitRollupTransactionResponse) Marshal

func (m *SubmitRollupTransactionResponse) Marshal() (dAtA []byte, err error)

func (*SubmitRollupTransactionResponse) MarshalTo

func (m *SubmitRollupTransactionResponse) MarshalTo(dAtA []byte) (int, error)

func (*SubmitRollupTransactionResponse) MarshalToSizedBuffer

func (m *SubmitRollupTransactionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SubmitRollupTransactionResponse) ProtoMessage

func (*SubmitRollupTransactionResponse) ProtoMessage()

func (*SubmitRollupTransactionResponse) Reset

func (*SubmitRollupTransactionResponse) Size

func (m *SubmitRollupTransactionResponse) Size() (n int)

func (*SubmitRollupTransactionResponse) String

func (*SubmitRollupTransactionResponse) Unmarshal

func (m *SubmitRollupTransactionResponse) Unmarshal(dAtA []byte) error

func (*SubmitRollupTransactionResponse) XXX_DiscardUnknown

func (m *SubmitRollupTransactionResponse) XXX_DiscardUnknown()

func (*SubmitRollupTransactionResponse) XXX_Marshal

func (m *SubmitRollupTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SubmitRollupTransactionResponse) XXX_Merge

func (m *SubmitRollupTransactionResponse) XXX_Merge(src proto.Message)

func (*SubmitRollupTransactionResponse) XXX_Size

func (m *SubmitRollupTransactionResponse) XXX_Size() int

func (*SubmitRollupTransactionResponse) XXX_Unmarshal

func (m *SubmitRollupTransactionResponse) XXX_Unmarshal(b []byte) error

type UnimplementedBatchVerifierServer

type UnimplementedBatchVerifierServer struct {
}

UnimplementedBatchVerifierServer can be embedded to have forward compatible implementations.

func (*UnimplementedBatchVerifierServer) VerifyBatch

type UnimplementedSequencerInputServer

type UnimplementedSequencerInputServer struct {
}

UnimplementedSequencerInputServer can be embedded to have forward compatible implementations.

func (*UnimplementedSequencerInputServer) SubmitRollupTransaction

type UnimplementedSequencerOutputServer

type UnimplementedSequencerOutputServer struct {
}

UnimplementedSequencerOutputServer can be embedded to have forward compatible implementations.

func (*UnimplementedSequencerOutputServer) GetNextBatch

func (*UnimplementedSequencerOutputServer) GetNextBatch(ctx context.Context, req *Batch) (*Batch, error)

type VerificationResponse

type VerificationResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
}

VerificationResponse

func (*VerificationResponse) Descriptor

func (*VerificationResponse) Descriptor() ([]byte, []int)

func (*VerificationResponse) GetSuccess

func (m *VerificationResponse) GetSuccess() bool

func (*VerificationResponse) Marshal

func (m *VerificationResponse) Marshal() (dAtA []byte, err error)

func (*VerificationResponse) MarshalTo

func (m *VerificationResponse) MarshalTo(dAtA []byte) (int, error)

func (*VerificationResponse) MarshalToSizedBuffer

func (m *VerificationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VerificationResponse) ProtoMessage

func (*VerificationResponse) ProtoMessage()

func (*VerificationResponse) Reset

func (m *VerificationResponse) Reset()

func (*VerificationResponse) Size

func (m *VerificationResponse) Size() (n int)

func (*VerificationResponse) String

func (m *VerificationResponse) String() string

func (*VerificationResponse) Unmarshal

func (m *VerificationResponse) Unmarshal(dAtA []byte) error

func (*VerificationResponse) XXX_DiscardUnknown

func (m *VerificationResponse) XXX_DiscardUnknown()

func (*VerificationResponse) XXX_Marshal

func (m *VerificationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VerificationResponse) XXX_Merge

func (m *VerificationResponse) XXX_Merge(src proto.Message)

func (*VerificationResponse) XXX_Size

func (m *VerificationResponse) XXX_Size() int

func (*VerificationResponse) XXX_Unmarshal

func (m *VerificationResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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