messageSigpb

package
v0.0.0-...-2f116a2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MsgType_name = map[int32]string{
	0: "Raw",
	1: "Ack",
	2: "Wit",
	3: "Catchup",
}
View Source
var MsgType_value = map[string]int32{
	"Raw":     0,
	"Ack":     1,
	"Wit":     2,
	"Catchup": 3,
}

Functions

This section is empty.

Types

type Convert

type Convert struct{}

func (*Convert) BytesToModelMessage

func (c *Convert) BytesToModelMessage(msgBytes []byte) *modelBLS.MessageWithSig

func (*Convert) MessageToBytes

func (c *Convert) MessageToBytes(msg modelBLS.MessageWithSig) *[]byte

type MsgType

type MsgType int32
const (
	MsgType_Raw     MsgType = 0
	MsgType_Ack     MsgType = 1
	MsgType_Wit     MsgType = 2
	MsgType_Catchup MsgType = 3
)

func (MsgType) Enum

func (x MsgType) Enum() *MsgType

func (MsgType) EnumDescriptor

func (MsgType) EnumDescriptor() ([]byte, []int)

func (MsgType) String

func (x MsgType) String() string

func (*MsgType) UnmarshalJSON

func (x *MsgType) UnmarshalJSON(data []byte) error

type PbMessageSig

type PbMessageSig struct {
	MsgType              *MsgType        `protobuf:"varint,1,req,name=Msg_type,json=MsgType,enum=messageSigpb.MsgType" json:"Msg_type,omitempty"`
	Source               *int64          `protobuf:"varint,2,req,name=source" json:"source,omitempty"`
	Step                 *int64          `protobuf:"varint,3,req,name=step" json:"step,omitempty"`
	History              []*PbMessageSig `protobuf:"bytes,4,rep,name=history" json:"history,omitempty"`
	Signature            []byte          `protobuf:"bytes,5,opt,name=signature" json:"signature,omitempty"`
	Mask                 []byte          `protobuf:"bytes,6,opt,name=mask" json:"mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*PbMessageSig) Descriptor

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

func (*PbMessageSig) GetHistory

func (m *PbMessageSig) GetHistory() []*PbMessageSig

func (*PbMessageSig) GetMask

func (m *PbMessageSig) GetMask() []byte

func (*PbMessageSig) GetMsgType

func (m *PbMessageSig) GetMsgType() MsgType

func (*PbMessageSig) GetSignature

func (m *PbMessageSig) GetSignature() []byte

func (*PbMessageSig) GetSource

func (m *PbMessageSig) GetSource() int64

func (*PbMessageSig) GetStep

func (m *PbMessageSig) GetStep() int64

func (*PbMessageSig) ProtoMessage

func (*PbMessageSig) ProtoMessage()

func (*PbMessageSig) Reset

func (m *PbMessageSig) Reset()

func (*PbMessageSig) String

func (m *PbMessageSig) String() string

func (*PbMessageSig) XXX_DiscardUnknown

func (m *PbMessageSig) XXX_DiscardUnknown()

func (*PbMessageSig) XXX_Marshal

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

func (*PbMessageSig) XXX_Merge

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

func (*PbMessageSig) XXX_Size

func (m *PbMessageSig) XXX_Size() int

func (*PbMessageSig) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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