chainedBftPb

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*VoteMsg) GetLedgerCommitInfo

func (m *VoteMsg) GetLedgerCommitInfo() []byte

func (*VoteMsg) GetSignature

func (m *VoteMsg) GetSignature() []*QuorumCertSign

func (*VoteMsg) GetVoteInfo

func (m *VoteMsg) GetVoteInfo() []byte

func (*VoteMsg) ProtoMessage

func (*VoteMsg) ProtoMessage()

func (*VoteMsg) Reset

func (m *VoteMsg) Reset()

func (*VoteMsg) String

func (m *VoteMsg) String() string

func (*VoteMsg) XXX_DiscardUnknown

func (m *VoteMsg) XXX_DiscardUnknown()

func (*VoteMsg) XXX_Marshal

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

func (*VoteMsg) XXX_Merge

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

func (*VoteMsg) XXX_Size

func (m *VoteMsg) XXX_Size() int

func (*VoteMsg) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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