Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commit struct { InfoID uint8 NodeID uint64 ViewID uint64 BlockHash *types.Hash Signature *types.Signature }
func JsonToCommit ¶
func (*Commit) CheckSignature ¶
type Request ¶
type Request struct { InfoID uint8 NodeID uint64 ViewID uint64 BlockJson []byte Signature *types.Signature }
func BytesToRequest ¶
func (*Request) CheckSignature ¶
type Response ¶
type Response struct { InfoID uint8 NodeID uint64 ViewID uint64 BlockHash types.Hash Signature *types.Signature }
func (*Response) CheckSignature ¶
type ViewChange ¶
type ViewChange struct { InfoID uint8 NodeID uint64 ViewID uint64 NewViewID uint64 Signature *types.Signature }
func NewViewChange ¶
func NewViewChange(nodeID uint64, viewID uint64, newViewID uint64) *ViewChange
func (*ViewChange) Bytes ¶
func (vc *ViewChange) Bytes() []byte
func (*ViewChange) CalcHash ¶
func (vc *ViewChange) CalcHash() *types.Hash
func (*ViewChange) CheckSignature ¶
func (vc *ViewChange) CheckSignature() (bool, error)
Click to show internal directories.
Click to hide internal directories.