Versions in this module Expand all Collapse all v0 v0.4.0 Mar 25, 2024 v0.3.0 Feb 28, 2024 Changes in this version + func BytesFromTimeoutVote(t *Timeout, author string, vote *TimeoutVote) []byte + type BlockData struct + Author string + Epoch uint64 + Payload *Payload + Qc *QuorumCert + Round uint64 + Timestamp uint64 + func (x *BlockData) GetParentRound() uint64 + func (x *BlockData) GetRound() uint64 + func (x *BlockData) Hash(algo gocrypto.Hash) []byte + func (x *BlockData) IsValid() error + func (x *BlockData) String() string + func (x *BlockData) Verify(quorum uint32, rootTrust map[string]crypto.Verifier) error + type IRChangeReason uint8 + const Quorum + const QuorumNotPossible + const T2Timeout + func (r IRChangeReason) String() string + type IRChangeReq struct + CertReason IRChangeReason + Requests []*certification.BlockCertificationRequest + SystemIdentifier types.SystemID + func (x *IRChangeReq) AddToHasher(hasher hash.Hash) + func (x *IRChangeReq) IsValid() error + func (x *IRChangeReq) String() string + func (x *IRChangeReq) Verify(tb partitions.PartitionTrustBase, luc *types.UnicityCertificate, ...) (*types.InputRecord, error) + type Payload struct + Requests []*IRChangeReq + func (x *Payload) AddToHasher(hasher hash.Hash) + func (x *Payload) IsEmpty() bool + func (x *Payload) IsValid() error + type QuorumCert struct + LedgerCommitInfo *types.UnicitySeal + Signatures map[string][]byte + VoteInfo *RoundInfo + func NewQuorumCertificate(voteInfo *RoundInfo, commitHash []byte) *QuorumCert + func NewQuorumCertificateFromVote(voteInfo *RoundInfo, commitInfo *types.UnicitySeal, ...) *QuorumCert + func (x *QuorumCert) AddSignersToHasher(hasher hash.Hash) + func (x *QuorumCert) GetCommitRound() uint64 + func (x *QuorumCert) GetParentRound() uint64 + func (x *QuorumCert) GetRound() uint64 + func (x *QuorumCert) IsValid() error + func (x *QuorumCert) Verify(quorum uint32, rootTrust map[string]crypto.Verifier) error + type RoundInfo struct + CurrentRootHash []byte + Epoch uint64 + ParentRoundNumber uint64 + RoundNumber uint64 + Timestamp uint64 + func (x *RoundInfo) Bytes() []byte + func (x *RoundInfo) GetParentRound() uint64 + func (x *RoundInfo) GetRound() uint64 + func (x *RoundInfo) Hash(hash gocrypto.Hash) []byte + func (x *RoundInfo) IsValid() error + type Timeout struct + Epoch uint64 + HighQc *QuorumCert + LastTC *TimeoutCert + Round uint64 + func NewTimeout(round, epoch uint64, hqc *QuorumCert, lastTC *TimeoutCert) *Timeout + func (x *Timeout) GetHqcRound() uint64 + func (x *Timeout) GetRound() uint64 + func (x *Timeout) IsValid() error + func (x *Timeout) Verify(quorum uint32, rootTrust map[string]crypto.Verifier) error + type TimeoutCert struct + Signatures map[string]*TimeoutVote + Timeout *Timeout + func (x *TimeoutCert) Add(author string, timeout *Timeout, signature []byte) error + func (x *TimeoutCert) GetAuthors() []string + func (x *TimeoutCert) GetHqcRound() uint64 + func (x *TimeoutCert) GetRound() uint64 + func (x *TimeoutCert) IsValid() error + func (x *TimeoutCert) Verify(quorum uint32, rootTrust map[string]crypto.Verifier) error + type TimeoutVote struct + HqcRound uint64 + Signature []byte