Versions in this module Expand all Collapse all v1 v1.0.1 Oct 31, 2024 Changes in this version + func ApplyPowerTableDiffs(prevPowerTable gpbft.PowerEntries, diffs ...PowerTableDiff) (gpbft.PowerEntries, error) + func MakePowerTableCID(pt gpbft.PowerEntries) (cid.Cid, error) + func ValidateFinalityCertificates(verifier gpbft.Verifier, network gpbft.NetworkName, ...) (_nextInstance uint64, chain gpbft.ECChain, newPowerTable gpbft.PowerEntries, ...) + type FinalityCertificate struct + ECChain gpbft.ECChain + GPBFTInstance uint64 + PowerTableDelta PowerTableDiff + Signature []byte + Signers bitfield.BitField + SupplementalData gpbft.SupplementalData + func NewFinalityCertificate(powerDelta PowerTableDiff, justification *gpbft.Justification) (*FinalityCertificate, error) + func (t *FinalityCertificate) MarshalCBOR(w io.Writer) error + func (t *FinalityCertificate) UnmarshalCBOR(r io.Reader) (err error) + type PowerTableDelta struct + ParticipantID gpbft.ActorID + PowerDelta gpbft.StoragePower + SigningKey gpbft.PubKey + func (d *PowerTableDelta) IsZero() bool + func (t *PowerTableDelta) MarshalCBOR(w io.Writer) error + func (t *PowerTableDelta) UnmarshalCBOR(r io.Reader) (err error) + type PowerTableDiff []PowerTableDelta + func MakePowerTableDiff(oldPowerTable, newPowerTable gpbft.PowerEntries) PowerTableDiff + func (t *PowerTableDiff) MarshalCBOR(w io.Writer) error + func (t *PowerTableDiff) UnmarshalCBOR(r io.Reader) (err error)