func (*Verifier) Descriptor() ([]byte, []int) {
	return file_consensus_proto_rawDescGZIP(), []int{6}
}
Deprecated: Use Verifier.ProtoReflect.Descriptor instead.
package model
import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
)
const (
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type MessageType int32
const (
	MessageType_Default          MessageType = 0
	MessageType_PrePrepare       MessageType = 1  
	MessageType_Prepare          MessageType = 2  
	MessageType_Commit           MessageType = 3
	MessageType_Checkpoint       MessageType = 4
	MessageType_ViewChange       MessageType = 5
	MessageType_NewBlockProposal MessageType = 6
)
var (
	MessageType_name = map[int32]string{
		0: "Default",
		1: "PrePrepare",
		2: "Prepare",
		3: "Commit",
		4: "Checkpoint",
		5: "ViewChange",
		6: "NewBlockProposal",
	}
	MessageType_value = map[string]int32{
		"Default":          0,
		"PrePrepare":       1,
		"Prepare":          2,
		"Commit":           3,
		"Checkpoint":       4,
		"ViewChange":       5,
		"NewBlockProposal": 6,
	}
)
func (x MessageType) Enum() *MessageType {
	p := new(MessageType)
	*p = x
	return p
}
func (x MessageType) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MessageType) Descriptor() protoreflect.EnumDescriptor {
	return file_consensus_proto_enumTypes[0].Descriptor()
}
func (MessageType) Type() protoreflect.EnumType {
	return &file_consensus_proto_enumTypes[0]
}
func (x MessageType) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}
func (MessageType) EnumDescriptor() ([]byte, []int) {
	return file_consensus_proto_rawDescGZIP(), []int{0}
}
type States int32
const (
	States_NotStartd     States = 0
	States_PrePreparing  States = 1
	States_Preparing     States = 2
	States_Checking      States = 3
	States_Committing    States = 4
	States_Finished      States = 5
	States_ViewChanging  States = 6
	States_Checkpointing States = 7
)
var (
	States_name = map[int32]string{
		0: "NotStartd",
		1: "PrePreparing",
		2: "Preparing",
		3: "Checking",
		4: "Committing",
		5: "Finished",
		6: "ViewChanging",
		7: "Checkpointing",
	}
	States_value = map[string]int32{
		"NotStartd":     0,
		"PrePreparing":  1,
		"Preparing":     2,
		"Checking":      3,
		"Committing":    4,
		"Finished":      5,
		"ViewChanging":  6,
		"Checkpointing": 7,
	}
)
func (x States) Enum() *States {
	p := new(States)
	*p = x
	return p
}
func (x States) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (States) Descriptor() protoreflect.EnumDescriptor {
	return file_consensus_proto_enumTypes[1].Descriptor()
}
func (States) Type() protoreflect.EnumType {
	return &file_consensus_proto_enumTypes[1]
}
func (x States) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}
func (States) EnumDescriptor() ([]byte, []int) {
	return file_consensus_proto_rawDescGZIP(), []int{1}
}
type SignPairs struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	SignerId []byte `protobuf:"bytes,1,opt,name=signer_id,json=signerId,proto3" json:"signer_id,omitempty"`
	Sign []byte `protobuf:"bytes,2,opt,name=sign,proto3" json:"sign,omitempty"`
}
func (x *SignPairs) Reset() {
	*x = SignPairs{}
	if protoimpl.UnsafeEnabled {
		mi := &file_consensus_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *SignPairs) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*SignPairs) ProtoMessage() {}
func (x *SignPairs) ProtoReflect() protoreflect.Message {
	mi := &file_consensus_proto_msgTypes[0]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}
func (*SignPairs) Descriptor() ([]byte, []int) {
	return file_consensus_proto_rawDescGZIP(), []int{0}
}
func (x *SignPairs) GetSignerId() []byte {
	if x != nil {
		return x.SignerId
	}
	return nil
}
func (x *SignPairs) GetSign() []byte {
	if x != nil {
		return x.Sign
	}
	return nil
}
type PbftBlock struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	PrevBlock string `protobuf:"bytes,1,opt,name=prev_block,json=prevBlock,proto3" json:"prev_block,omitempty"`
	BlockId string `protobuf:"bytes,2,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	SignerId []byte `protobuf:"bytes,3,opt,name=signer_id,json=signerId,proto3" json:"signer_id,omitempty"`
	TimeStamp uint64 `protobuf:"varint,4,opt,name=time_stamp,json=timeStamp,proto3" json:"time_stamp,omitempty"`
	BlockNum  uint64 `protobuf:"varint,5,opt,name=block_num,json=blockNum,proto3" json:"block_num,omitempty"`
	Tansactions         *Txs        `protobuf:"bytes,6,opt,name=tansactions,proto3" json:"tansactions,omitempty"`
	TransactionReceipts *TxReceipts `protobuf:"bytes,9,opt,name=transaction_receipts,json=transactionReceipts,proto3" json:"transaction_receipts,omitempty"`
	TxRoot              []byte      `protobuf:"bytes,11,opt,name=tx_root,json=txRoot,proto3" json:"tx_root,omitempty"`
	TxReceiptsRoot      []byte      `protobuf:"bytes,12,opt,name=tx_receipts_root,json=txReceiptsRoot,proto3" json:"tx_receipts_root,omitempty"`
	Sign []byte `protobuf:"bytes,7,opt,name=sign,proto3" json:"sign,omitempty"`
	View      uint64       `protobuf:"varint,10,opt,name=view,proto3" json:"view,omitempty"`
	SignPairs []*SignPairs `protobuf:"bytes,8,rep,name=sign_pairs,json=signPairs,proto3" json:"sign_pairs,omitempty"`
}
func (x *PbftBlock) Reset() {
	*x = PbftBlock{}
	if protoimpl.UnsafeEnabled {
		mi := &file_consensus_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *PbftBlock) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*PbftBlock) ProtoMessage() {}
func (x *PbftBlock) ProtoReflect() protoreflect.Message {
	mi := &file_consensus_proto_msgTypes[1]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}
func (*PbftBlock) Descriptor() ([]byte, []int) {
	return file_consensus_proto_rawDescGZIP(), []int{1}
}
func (x *PbftBlock) GetPrevBlock() string {
	if x != nil {
		return x.PrevBlock
	}
	return ""
}
func (x *PbftBlock) GetBlockId() string {
	if x != nil {
		return x.BlockId
	}
	return ""
}
func (x *PbftBlock) GetSignerId() []byte {
	if x != nil {
		return x.SignerId
	}
	return nil
}
func (x *PbftBlock) GetTimeStamp() uint64 {
	if x != nil {
		return x.TimeStamp
	}
	return 0
}
func (x *PbftBlock) GetBlockNum() uint64 {
	if x != nil {
		return x.BlockNum
	}
	return 0
}
func (x *PbftBlock) GetTansactions() *Txs {
	if x != nil {
		return x.Tansactions
	}
	return nil
}
func (x *PbftBlock) GetTransactionReceipts() *TxReceipts {
	if x != nil {
		return x.TransactionReceipts
	}
	return nil
}
func (x *PbftBlock) GetTxRoot() []byte {
	if x != nil {
		return x.TxRoot
	}
	return nil
}
func (x *PbftBlock) GetTxReceiptsRoot() []byte {
	if x != nil {
		return x.TxReceiptsRoot
	}
	return nil
}
func (x *PbftBlock) GetSign() []byte {
	if x != nil {
		return x.Sign
	}
	return nil
}
func (x *PbftBlock) GetView() uint64 {
	if x != nil {
		return x.View
	}
	return 0
}
func (x *PbftBlock) GetSignPairs() []*SignPairs {
	if x != nil {
		return x.SignPairs
	}
	return nil
}
type PbftMessageInfo struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	MsgType MessageType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=MessageType" json:"msg_type,omitempty"`
	View uint64 `protobuf:"varint,2,opt,name=view,proto3" json:"view,omitempty"`
	SeqNum uint64 `protobuf:"varint,3,opt,name=seq_num,json=seqNum,proto3" json:"seq_num,omitempty"`
	SignerId []byte `protobuf:"bytes,4,opt,name=signer_id,json=signerId,proto3" json:"signer_id,omitempty"`
	Sign []byte `protobuf:"bytes,5,opt,name=sign,proto3" json:"sign,omitempty"`
}
func (x *PbftMessageInfo) Reset() {
	*x = PbftMessageInfo{}
	if protoimpl.UnsafeEnabled {
		mi := &file_consensus_proto_msgTypes[2]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *PbftMessageInfo) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*PbftMessageInfo) ProtoMessage() {}
func (x *PbftMessageInfo) ProtoReflect() protoreflect.Message {
	mi := &file_consensus_proto_msgTypes[2]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}
func (*PbftMessageInfo) Descriptor() ([]byte, []int) {
	return file_consensus_proto_rawDescGZIP(), []int{2}
}
func (x *PbftMessageInfo) GetMsgType() MessageType {
	if x != nil {
		return x.MsgType
	}
	return MessageType_Default
}
func (x *PbftMessageInfo) GetView() uint64 {
	if x != nil {
		return x.View
	}
	return 0
}
func (x *PbftMessageInfo) GetSeqNum() uint64 {
	if x != nil {
		return x.SeqNum
	}
	return 0
}
func (x *PbftMessageInfo) GetSignerId() []byte {
	if x != nil {
		return x.SignerId
	}
	return nil
}
func (x *PbftMessageInfo) GetSign() []byte {
	if x != nil {
		return x.Sign
	}
	return nil
}
type PbftGenericMessage struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	Info *PbftMessageInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	Block *PbftBlock `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
	OtherInfos []*PbftMessageInfo `protobuf:"bytes,3,rep,name=other_infos,json=otherInfos,proto3" json:"other_infos,omitempty"`
}
func (x *PbftGenericMessage) Reset() {
	*x = PbftGenericMessage{}
	if protoimpl.UnsafeEnabled {
		mi := &file_consensus_proto_msgTypes[3]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *PbftGenericMessage) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*PbftGenericMessage) ProtoMessage() {}
func (x *PbftGenericMessage) ProtoReflect() protoreflect.Message {
	mi := &file_consensus_proto_msgTypes[3]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}
func (*PbftGenericMessage) Descriptor() ([]byte, []int) {
	return file_consensus_proto_rawDescGZIP(), []int{3}
}
func (x *PbftGenericMessage) GetInfo() *PbftMessageInfo {
	if x != nil {
		return x.Info
	}
	return nil
}
func (x *PbftGenericMessage) GetBlock() *PbftBlock {
	if x != nil {
		return x.Block
	}
	return nil
}
func (x *PbftGenericMessage) GetOtherInfos() []*PbftMessageInfo {
	if x != nil {
		return x.OtherInfos
	}
	return nil
}
type PbftViewChange struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	Info *PbftMessageInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	CheckpointMessages []*PbftGenericMessage `protobuf:"bytes,2,rep,name=checkpoint_messages,json=checkpointMessages,proto3" json:"checkpoint_messages,omitempty"`
}
func (x *PbftViewChange) Reset() {
	*x = PbftViewChange{}
	if protoimpl.UnsafeEnabled {
		mi := &file_consensus_proto_msgTypes[4]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *PbftViewChange) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*PbftViewChange) ProtoMessage() {}
func (x *PbftViewChange) ProtoReflect() protoreflect.Message {
	mi := &file_consensus_proto_msgTypes[4]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}
func (*PbftViewChange) Descriptor() ([]byte, []int) {
	return file_consensus_proto_rawDescGZIP(), []int{4}
}
func (x *PbftViewChange) GetInfo() *PbftMessageInfo {
	if x != nil {
		return x.Info
	}
	return nil
}
func (x *PbftViewChange) GetCheckpointMessages() []*PbftGenericMessage {
	if x != nil {
		return x.CheckpointMessages
	}
	return nil
}
type PbftMessage struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	Msg isPbftMessage_Msg `protobuf_oneof:"msg"`
}
func (x *PbftMessage) Reset() {
	*x = PbftMessage{}
	if protoimpl.UnsafeEnabled {
		mi := &file_consensus_proto_msgTypes[5]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *PbftMessage) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*PbftMessage) ProtoMessage() {}
func (x *PbftMessage) ProtoReflect() protoreflect.Message {
	mi := &file_consensus_proto_msgTypes[5]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}
func (*PbftMessage) Descriptor() ([]byte, []int) {
	return file_consensus_proto_rawDescGZIP(), []int{5}
}
func (m *PbftMessage) GetMsg() isPbftMessage_Msg {
	if m != nil {
		return m.Msg
	}
	return nil
}
func (x *PbftMessage) GetGeneric() *PbftGenericMessage {
	if x, ok := x.GetMsg().(*PbftMessage_Generic); ok {
		return x.Generic
	}
	return nil
}
func (x *PbftMessage) GetViewChange() *PbftViewChange {
	if x, ok := x.GetMsg().(*PbftMessage_ViewChange); ok {
		return x.ViewChange
	}
	return nil
}
type isPbftMessage_Msg interface {
	isPbftMessage_Msg()
}
type PbftMessage_Generic struct {
	Generic *PbftGenericMessage `protobuf:"bytes,1,opt,name=generic,proto3,oneof"`
}
type PbftMessage_ViewChange struct {
	ViewChange *PbftViewChange `protobuf:"bytes,2,opt,name=view_change,json=viewChange,proto3,oneof"`
}
func (*PbftMessage_Generic) isPbftMessage_Msg() {}
func (*PbftMessage_ViewChange) isPbftMessage_Msg() {}
type Verifier struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	PublickKey []byte `protobuf:"bytes,1,opt,name=publick_key,json=publickKey,proto3" json:"publick_key,omitempty"`
	PrivateKey []byte `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	SeqNum     int32  `protobuf:"varint,3,opt,name=seq_num,json=seqNum,proto3" json:"seq_num,omitempty"`
}
func (x *Verifier) Reset() {
	*x = Verifier{}
	if protoimpl.UnsafeEnabled {
		mi := &file_consensus_proto_msgTypes[6]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *Verifier) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*Verifier) ProtoMessage() {}
func (x *Verifier) ProtoReflect() protoreflect.Message {
	mi := &file_consensus_proto_msgTypes[6]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}