Versions in this module Expand all Collapse all v1 v1.0.0 Apr 25, 2019 Changes in this version + const GenesisHeight + var NullBlockHash common.Hash + var SkipBlockHash common.Hash + type AgreementResult struct + BlockHash common.Hash + IsEmptyBlock bool + Position Position + Randomness []byte + Votes []Vote + func (r *AgreementResult) String() string + type Block struct + CRSSignature crypto.Signature + Hash common.Hash + ParentHash common.Hash + Payload []byte + PayloadHash common.Hash + Position Position + ProposerID NodeID + Randomness []byte + Signature crypto.Signature + Timestamp time.Time + Witness Witness + func (b *Block) Clone() (bcopy *Block) + func (b *Block) DecodeRLP(s *rlp.Stream) error + func (b *Block) EncodeRLP(w io.Writer) error + func (b *Block) IsEmpty() bool + func (b *Block) IsFinalized() bool + func (b *Block) IsGenesis() bool + func (b *Block) String() string + type BlockVerifyStatus int + const VerifyInvalidBlock + const VerifyOK + const VerifyRetryLater + type BlocksByPosition []*Block + func (bs *BlocksByPosition) Pop() (ret interface{}) + func (bs *BlocksByPosition) Push(x interface{}) + func (bs BlocksByPosition) Len() int + func (bs BlocksByPosition) Less(i int, j int) bool + func (bs BlocksByPosition) Swap(i int, j int) + type ByHash []*Block + func (b ByHash) Len() int + func (b ByHash) Less(i int, j int) bool + func (b ByHash) Swap(i int, j int) + type Config struct + LambdaBA time.Duration + LambdaDKG time.Duration + MinBlockInterval time.Duration + NotarySetSize uint32 + RoundLength uint64 + func (c *Config) Bytes() []byte + func (c *Config) Clone() *Config + type Msg struct + Payload interface{} + PeerID interface{} + type NodeID struct + func NewNodeID(pubKey crypto.PublicKey) NodeID + func (v NodeID) Equal(v2 NodeID) bool + func (v NodeID) String() string + type NodeIDs []NodeID + func (v NodeIDs) Len() int + func (v NodeIDs) Less(i int, j int) bool + func (v NodeIDs) Swap(i int, j int) + type NodeSet struct + IDs map[NodeID]struct{} + func NewNodeSet() *NodeSet + func NewNodeSetFromMap(nodes map[NodeID]struct{}) *NodeSet + func (ns *NodeSet) Add(ID NodeID) + func (ns *NodeSet) Clone() *NodeSet + func (ns *NodeSet) GetSubSet(size int, target *SubSetTarget) map[NodeID]struct{} + type Position struct + Height uint64 + Round uint64 + func (pos Position) Equal(other Position) bool + func (pos Position) Newer(other Position) bool + func (pos Position) Older(other Position) bool + func (pos Position) String() string + type SubSetTarget struct + func NewNodeLeaderTarget(crs common.Hash, height uint64) *SubSetTarget + func NewNotarySetTarget(crs common.Hash) *SubSetTarget + type Vote struct + PartialSignature cryptoDKG.PartialSignature + Signature crypto.Signature + func NewVote(t VoteType, hash common.Hash, period uint64) *Vote + func (v *Vote) Clone() *Vote + func (v *Vote) String() string + type VoteHeader struct + BlockHash common.Hash + Period uint64 + Position Position + ProposerID NodeID + Type VoteType + type VoteType byte + const MaxVoteType + const VoteCom + const VoteFast + const VoteFastCom + const VoteInit + const VotePreCom + type Witness struct + Data []byte + Height uint64