mscpbtypes

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cert

type Cert struct {
	BatchId    types2.BatchID
	Signers    []types3.NodeID
	Signatures [][]uint8
}

func CertFromPb

func CertFromPb(pb *mscpb.Cert) *Cert

func (*Cert) MirReflect

func (*Cert) MirReflect() mirreflect.Type

func (*Cert) Pb

func (m *Cert) Pb() *mscpb.Cert

type Certs

type Certs struct {
	Certs []*Cert
}

func CertsFromPb

func CertsFromPb(pb *mscpb.Certs) *Certs

func (*Certs) MirReflect

func (*Certs) MirReflect() mirreflect.Type

func (*Certs) Pb

func (m *Certs) Pb() *mscpb.Certs

type InstanceParams added in v0.3.5

type InstanceParams struct {
	Epoch       types4.EpochNr
	Membership  *types.Membership
	MaxRequests uint64
}

func InstanceParamsFromPb added in v0.3.5

func InstanceParamsFromPb(pb *mscpb.InstanceParams) *InstanceParams

func (*InstanceParams) MirReflect added in v0.3.5

func (*InstanceParams) MirReflect() mirreflect.Type

func (*InstanceParams) Pb added in v0.3.5

type Message

type Message struct {
	Type Message_Type
}

func MessageFromPb

func MessageFromPb(pb *mscpb.Message) *Message

func (*Message) MirReflect

func (*Message) MirReflect() mirreflect.Type

func (*Message) Pb

func (m *Message) Pb() *mscpb.Message

type Message_ProvideBatch

type Message_ProvideBatch struct {
	ProvideBatch *ProvideBatchMessage
}

func (*Message_ProvideBatch) MirReflect

func (*Message_ProvideBatch) MirReflect() mirreflect.Type

func (*Message_ProvideBatch) Pb

func (*Message_ProvideBatch) Unwrap

type Message_RequestBatch

type Message_RequestBatch struct {
	RequestBatch *RequestBatchMessage
}

func (*Message_RequestBatch) MirReflect

func (*Message_RequestBatch) MirReflect() mirreflect.Type

func (*Message_RequestBatch) Pb

func (*Message_RequestBatch) Unwrap

type Message_RequestSig

type Message_RequestSig struct {
	RequestSig *RequestSigMessage
}

func (*Message_RequestSig) MirReflect

func (*Message_RequestSig) MirReflect() mirreflect.Type

func (*Message_RequestSig) Pb

func (*Message_RequestSig) Unwrap

type Message_Sig

type Message_Sig struct {
	Sig *SigMessage
}

func (*Message_Sig) MirReflect

func (*Message_Sig) MirReflect() mirreflect.Type

func (*Message_Sig) Pb

func (w *Message_Sig) Pb() mscpb.Message_Type

func (*Message_Sig) Unwrap

func (w *Message_Sig) Unwrap() *SigMessage

type Message_Type

type Message_Type interface {
	mirreflect.GeneratedType

	Pb() mscpb.Message_Type
	// contains filtered or unexported methods
}

func Message_TypeFromPb

func Message_TypeFromPb(pb mscpb.Message_Type) Message_Type

type Message_TypeWrapper

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

type ProvideBatchMessage

type ProvideBatchMessage struct {
	Txs     []*types.Transaction
	ReqId   uint64
	BatchId types2.BatchID
}

func ProvideBatchMessageFromPb

func ProvideBatchMessageFromPb(pb *mscpb.ProvideBatchMessage) *ProvideBatchMessage

func (*ProvideBatchMessage) MirReflect

func (*ProvideBatchMessage) MirReflect() mirreflect.Type

func (*ProvideBatchMessage) Pb

type RequestBatchMessage

type RequestBatchMessage struct {
	BatchId types2.BatchID
	ReqId   uint64
}

func RequestBatchMessageFromPb

func RequestBatchMessageFromPb(pb *mscpb.RequestBatchMessage) *RequestBatchMessage

func (*RequestBatchMessage) MirReflect

func (*RequestBatchMessage) MirReflect() mirreflect.Type

func (*RequestBatchMessage) Pb

type RequestSigMessage

type RequestSigMessage struct {
	Txs   []*types.Transaction
	ReqId uint64
}

func RequestSigMessageFromPb

func RequestSigMessageFromPb(pb *mscpb.RequestSigMessage) *RequestSigMessage

func (*RequestSigMessage) MirReflect

func (*RequestSigMessage) MirReflect() mirreflect.Type

func (*RequestSigMessage) Pb

type SigMessage

type SigMessage struct {
	Signature []uint8
	ReqId     uint64
}

func SigMessageFromPb

func SigMessageFromPb(pb *mscpb.SigMessage) *SigMessage

func (*SigMessage) MirReflect

func (*SigMessage) MirReflect() mirreflect.Type

func (*SigMessage) Pb

func (m *SigMessage) Pb() *mscpb.SigMessage

Jump to

Keyboard shortcuts

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