Documentation ¶
Index ¶
- type ProposalMsg
- func (*ProposalMsg) Descriptor() ([]byte, []int)
- func (m *ProposalMsg) GetJustifyQC() []byte
- func (m *ProposalMsg) GetMsgDigest() []byte
- func (m *ProposalMsg) GetProposalId() []byte
- func (m *ProposalMsg) GetProposalView() int64
- func (m *ProposalMsg) GetSign() *QuorumCertSign
- func (m *ProposalMsg) GetTimestamp() int64
- func (*ProposalMsg) ProtoMessage()
- func (m *ProposalMsg) Reset()
- func (m *ProposalMsg) String() string
- func (m *ProposalMsg) XXX_DiscardUnknown()
- func (m *ProposalMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProposalMsg) XXX_Merge(src proto.Message)
- func (m *ProposalMsg) XXX_Size() int
- func (m *ProposalMsg) XXX_Unmarshal(b []byte) error
- type QuorumCertSign
- func (*QuorumCertSign) Descriptor() ([]byte, []int)
- func (m *QuorumCertSign) GetAddress() string
- func (m *QuorumCertSign) GetPublicKey() string
- func (m *QuorumCertSign) GetSign() []byte
- func (*QuorumCertSign) ProtoMessage()
- func (m *QuorumCertSign) Reset()
- func (m *QuorumCertSign) String() string
- func (m *QuorumCertSign) XXX_DiscardUnknown()
- func (m *QuorumCertSign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuorumCertSign) XXX_Merge(src proto.Message)
- func (m *QuorumCertSign) XXX_Size() int
- func (m *QuorumCertSign) XXX_Unmarshal(b []byte) error
- type VoteMsg
- func (*VoteMsg) Descriptor() ([]byte, []int)
- func (m *VoteMsg) GetLedgerCommitInfo() []byte
- func (m *VoteMsg) GetSignature() []*QuorumCertSign
- func (m *VoteMsg) GetVoteInfo() []byte
- func (*VoteMsg) ProtoMessage()
- func (m *VoteMsg) Reset()
- func (m *VoteMsg) String() string
- func (m *VoteMsg) XXX_DiscardUnknown()
- func (m *VoteMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VoteMsg) XXX_Merge(src proto.Message)
- func (m *VoteMsg) XXX_Size() int
- func (m *VoteMsg) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProposalMsg ¶
type ProposalMsg struct { // 生产高度 ProposalView int64 `protobuf:"varint,1,opt,name=proposalView,proto3" json:"proposalView,omitempty"` ProposalId []byte `protobuf:"bytes,2,opt,name=proposalId,proto3" json:"proposalId,omitempty"` // 生产时间 Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // 上一个区块基本信息 JustifyQC []byte `protobuf:"bytes,4,opt,name=JustifyQC,proto3" json:"JustifyQC,omitempty"` // 签名 Sign *QuorumCertSign `protobuf:"bytes,5,opt,name=Sign,proto3" json:"Sign,omitempty"` // 消息摘要 MsgDigest []byte `protobuf:"bytes,6,opt,name=MsgDigest,proto3" json:"MsgDigest,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ProposalMsg 是chained-bft中定义的Block形式,区别在于其有一个parentQC,该存储只供chained-bft类使用 ProposalMsg的结构就类似一个Block的结构
func (*ProposalMsg) Descriptor ¶
func (*ProposalMsg) Descriptor() ([]byte, []int)
func (*ProposalMsg) GetJustifyQC ¶
func (m *ProposalMsg) GetJustifyQC() []byte
func (*ProposalMsg) GetMsgDigest ¶
func (m *ProposalMsg) GetMsgDigest() []byte
func (*ProposalMsg) GetProposalId ¶
func (m *ProposalMsg) GetProposalId() []byte
func (*ProposalMsg) GetProposalView ¶
func (m *ProposalMsg) GetProposalView() int64
func (*ProposalMsg) GetSign ¶
func (m *ProposalMsg) GetSign() *QuorumCertSign
func (*ProposalMsg) GetTimestamp ¶
func (m *ProposalMsg) GetTimestamp() int64
func (*ProposalMsg) ProtoMessage ¶
func (*ProposalMsg) ProtoMessage()
func (*ProposalMsg) Reset ¶
func (m *ProposalMsg) Reset()
func (*ProposalMsg) String ¶
func (m *ProposalMsg) String() string
func (*ProposalMsg) XXX_DiscardUnknown ¶
func (m *ProposalMsg) XXX_DiscardUnknown()
func (*ProposalMsg) XXX_Marshal ¶
func (m *ProposalMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProposalMsg) XXX_Merge ¶
func (m *ProposalMsg) XXX_Merge(src proto.Message)
func (*ProposalMsg) XXX_Size ¶
func (m *ProposalMsg) XXX_Size() int
func (*ProposalMsg) XXX_Unmarshal ¶
func (m *ProposalMsg) XXX_Unmarshal(b []byte) error
type QuorumCertSign ¶
type QuorumCertSign struct { Address string `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address,omitempty"` PublicKey string `protobuf:"bytes,2,opt,name=PublicKey,proto3" json:"PublicKey,omitempty"` Sign []byte `protobuf:"bytes,3,opt,name=Sign,proto3" json:"Sign,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
QuorumCertSign 是一个(Addr, Pk, 签名)三元组
func (*QuorumCertSign) Descriptor ¶
func (*QuorumCertSign) Descriptor() ([]byte, []int)
func (*QuorumCertSign) GetAddress ¶
func (m *QuorumCertSign) GetAddress() string
func (*QuorumCertSign) GetPublicKey ¶
func (m *QuorumCertSign) GetPublicKey() string
func (*QuorumCertSign) GetSign ¶
func (m *QuorumCertSign) GetSign() []byte
func (*QuorumCertSign) ProtoMessage ¶
func (*QuorumCertSign) ProtoMessage()
func (*QuorumCertSign) Reset ¶
func (m *QuorumCertSign) Reset()
func (*QuorumCertSign) String ¶
func (m *QuorumCertSign) String() string
func (*QuorumCertSign) XXX_DiscardUnknown ¶
func (m *QuorumCertSign) XXX_DiscardUnknown()
func (*QuorumCertSign) XXX_Marshal ¶
func (m *QuorumCertSign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuorumCertSign) XXX_Merge ¶
func (m *QuorumCertSign) XXX_Merge(src proto.Message)
func (*QuorumCertSign) XXX_Size ¶
func (m *QuorumCertSign) XXX_Size() int
func (*QuorumCertSign) XXX_Unmarshal ¶
func (m *QuorumCertSign) XXX_Unmarshal(b []byte) error
type VoteMsg ¶
type VoteMsg struct { VoteInfo []byte `protobuf:"bytes,1,opt,name=VoteInfo,proto3" json:"VoteInfo,omitempty"` LedgerCommitInfo []byte `protobuf:"bytes,2,opt,name=LedgerCommitInfo,proto3" json:"LedgerCommitInfo,omitempty"` Signature []*QuorumCertSign `protobuf:"bytes,3,rep,name=Signature,proto3" json:"Signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
VoteMsg is the vote message of the protocal.
func (*VoteMsg) Descriptor ¶
func (*VoteMsg) GetLedgerCommitInfo ¶
func (*VoteMsg) GetSignature ¶
func (m *VoteMsg) GetSignature() []*QuorumCertSign
func (*VoteMsg) GetVoteInfo ¶
func (*VoteMsg) ProtoMessage ¶
func (*VoteMsg) ProtoMessage()
func (*VoteMsg) XXX_DiscardUnknown ¶
func (m *VoteMsg) XXX_DiscardUnknown()
func (*VoteMsg) XXX_Marshal ¶
func (*VoteMsg) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.