mscpb

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_availabilitypb_mscpb_mscpb_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Cert

type Cert struct {
	BatchId []byte `protobuf:"bytes,1,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
	// TODO: can be encoded as n bits
	Signers    []string `protobuf:"bytes,2,rep,name=signers,proto3" json:"signers,omitempty"`
	Signatures [][]byte `protobuf:"bytes,3,rep,name=signatures,proto3" json:"signatures,omitempty"`
	// contains filtered or unexported fields
}

func (*Cert) Descriptor deprecated

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

Deprecated: Use Cert.ProtoReflect.Descriptor instead.

func (*Cert) GetBatchId

func (x *Cert) GetBatchId() []byte

func (*Cert) GetSignatures

func (x *Cert) GetSignatures() [][]byte

func (*Cert) GetSigners

func (x *Cert) GetSigners() []string

func (*Cert) ProtoMessage

func (*Cert) ProtoMessage()

func (*Cert) ProtoReflect

func (x *Cert) ProtoReflect() protoreflect.Message

func (*Cert) Reset

func (x *Cert) Reset()

func (*Cert) String

func (x *Cert) String() string

type Certs added in v0.3.0

type Certs struct {
	Certs []*Cert `protobuf:"bytes,1,rep,name=certs,proto3" json:"certs,omitempty"`
	// contains filtered or unexported fields
}

func (*Certs) Descriptor deprecated added in v0.3.0

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

Deprecated: Use Certs.ProtoReflect.Descriptor instead.

func (*Certs) GetCerts added in v0.3.0

func (x *Certs) GetCerts() []*Cert

func (*Certs) ProtoMessage added in v0.3.0

func (*Certs) ProtoMessage()

func (*Certs) ProtoReflect added in v0.3.0

func (x *Certs) ProtoReflect() protoreflect.Message

func (*Certs) Reset added in v0.3.0

func (x *Certs) Reset()

func (*Certs) String added in v0.3.0

func (x *Certs) String() string

type InstanceParams

type InstanceParams struct {
	Epoch       uint64                `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
	Membership  *trantorpb.Membership `protobuf:"bytes,2,opt,name=membership,proto3" json:"membership,omitempty"`
	MaxRequests uint64                `protobuf:"varint,3,opt,name=max_requests,json=maxRequests,proto3" json:"max_requests,omitempty"`
	// contains filtered or unexported fields
}

func (*InstanceParams) Descriptor deprecated

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

Deprecated: Use InstanceParams.ProtoReflect.Descriptor instead.

func (*InstanceParams) GetEpoch added in v0.4.2

func (x *InstanceParams) GetEpoch() uint64

func (*InstanceParams) GetMaxRequests added in v0.3.0

func (x *InstanceParams) GetMaxRequests() uint64

func (*InstanceParams) GetMembership

func (x *InstanceParams) GetMembership() *trantorpb.Membership

func (*InstanceParams) ProtoMessage

func (*InstanceParams) ProtoMessage()

func (*InstanceParams) ProtoReflect

func (x *InstanceParams) ProtoReflect() protoreflect.Message

func (*InstanceParams) Reset

func (x *InstanceParams) Reset()

func (*InstanceParams) String

func (x *InstanceParams) String() string

type Message

type Message struct {

	// Types that are assignable to Type:
	//	*Message_RequestSig
	//	*Message_Sig
	//	*Message_RequestBatch
	//	*Message_ProvideBatch
	Type isMessage_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetProvideBatch

func (x *Message) GetProvideBatch() *ProvideBatchMessage

func (*Message) GetRequestBatch

func (x *Message) GetRequestBatch() *RequestBatchMessage

func (*Message) GetRequestSig

func (x *Message) GetRequestSig() *RequestSigMessage

func (*Message) GetSig

func (x *Message) GetSig() *SigMessage

func (*Message) GetType

func (m *Message) GetType() isMessage_Type

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) ReflectTypeOptions added in v0.3.0

func (*Message) ReflectTypeOptions() []reflect.Type

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type Message_ProvideBatch

type Message_ProvideBatch struct {
	ProvideBatch *ProvideBatchMessage `protobuf:"bytes,4,opt,name=provide_batch,json=provideBatch,proto3,oneof"`
}

func (*Message_ProvideBatch) Unwrap added in v0.3.0

type Message_RequestBatch

type Message_RequestBatch struct {
	RequestBatch *RequestBatchMessage `protobuf:"bytes,3,opt,name=request_batch,json=requestBatch,proto3,oneof"`
}

func (*Message_RequestBatch) Unwrap added in v0.3.0

type Message_RequestSig

type Message_RequestSig struct {
	RequestSig *RequestSigMessage `protobuf:"bytes,1,opt,name=request_sig,json=requestSig,proto3,oneof"`
}

func (*Message_RequestSig) Unwrap added in v0.3.0

type Message_Sig

type Message_Sig struct {
	Sig *SigMessage `protobuf:"bytes,2,opt,name=sig,proto3,oneof"`
}

func (*Message_Sig) Unwrap added in v0.3.0

func (w *Message_Sig) Unwrap() *SigMessage

type Message_Type added in v0.3.0

type Message_Type = isMessage_Type

type Message_TypeWrapper added in v0.3.0

type Message_TypeWrapper[T any] interface {
	Message_Type
	Unwrap() *T
}

type ProvideBatchMessage

type ProvideBatchMessage struct {
	Txs     []*trantorpb.Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	ReqId   uint64                   `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"`
	BatchId []byte                   `protobuf:"bytes,3,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ProvideBatchMessage) Descriptor deprecated

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

Deprecated: Use ProvideBatchMessage.ProtoReflect.Descriptor instead.

func (*ProvideBatchMessage) GetBatchId added in v0.3.0

func (x *ProvideBatchMessage) GetBatchId() []byte

func (*ProvideBatchMessage) GetReqId

func (x *ProvideBatchMessage) GetReqId() uint64

func (*ProvideBatchMessage) GetTxs

func (x *ProvideBatchMessage) GetTxs() []*trantorpb.Transaction

func (*ProvideBatchMessage) ProtoMessage

func (*ProvideBatchMessage) ProtoMessage()

func (*ProvideBatchMessage) ProtoReflect

func (x *ProvideBatchMessage) ProtoReflect() protoreflect.Message

func (*ProvideBatchMessage) Reset

func (x *ProvideBatchMessage) Reset()

func (*ProvideBatchMessage) String

func (x *ProvideBatchMessage) String() string

type RequestBatchMessage

type RequestBatchMessage struct {
	BatchId []byte `protobuf:"bytes,1,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
	ReqId   uint64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestBatchMessage) Descriptor deprecated

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

Deprecated: Use RequestBatchMessage.ProtoReflect.Descriptor instead.

func (*RequestBatchMessage) GetBatchId

func (x *RequestBatchMessage) GetBatchId() []byte

func (*RequestBatchMessage) GetReqId

func (x *RequestBatchMessage) GetReqId() uint64

func (*RequestBatchMessage) ProtoMessage

func (*RequestBatchMessage) ProtoMessage()

func (*RequestBatchMessage) ProtoReflect

func (x *RequestBatchMessage) ProtoReflect() protoreflect.Message

func (*RequestBatchMessage) Reset

func (x *RequestBatchMessage) Reset()

func (*RequestBatchMessage) String

func (x *RequestBatchMessage) String() string

type RequestSigMessage

type RequestSigMessage struct {
	Txs   []*trantorpb.Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	ReqId uint64                   `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestSigMessage) Descriptor deprecated

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

Deprecated: Use RequestSigMessage.ProtoReflect.Descriptor instead.

func (*RequestSigMessage) GetReqId

func (x *RequestSigMessage) GetReqId() uint64

func (*RequestSigMessage) GetTxs

func (x *RequestSigMessage) GetTxs() []*trantorpb.Transaction

func (*RequestSigMessage) ProtoMessage

func (*RequestSigMessage) ProtoMessage()

func (*RequestSigMessage) ProtoReflect

func (x *RequestSigMessage) ProtoReflect() protoreflect.Message

func (*RequestSigMessage) Reset

func (x *RequestSigMessage) Reset()

func (*RequestSigMessage) String

func (x *RequestSigMessage) String() string

type SigMessage

type SigMessage struct {
	Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
	ReqId     uint64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SigMessage) Descriptor deprecated

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

Deprecated: Use SigMessage.ProtoReflect.Descriptor instead.

func (*SigMessage) GetReqId

func (x *SigMessage) GetReqId() uint64

func (*SigMessage) GetSignature

func (x *SigMessage) GetSignature() []byte

func (*SigMessage) ProtoMessage

func (*SigMessage) ProtoMessage()

func (*SigMessage) ProtoReflect

func (x *SigMessage) ProtoReflect() protoreflect.Message

func (*SigMessage) Reset

func (x *SigMessage) Reset()

func (*SigMessage) String

func (x *SigMessage) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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