CommitteeChainVerifier
type CommitteeChainVerifier
Verifies the committee chain: the sequence of committees linked by each epoch's certified closing checkpoint, whose end-of-epoch data elects the committee of the next epoch.
Starting from a trusted committee (typically the genesis committee, the operator's trust root), feed it each epoch's closing `SignedCheckpointSummary` in epoch order via `Self::verify_epoch_close`; every summary a consumer obtains this way is committee-verified, with no trust in whatever transport delivered it.
The walk is transport-agnostic by design — callers drive their own loop (an in-memory list, a remote-store stream, files on disk) and feed summaries in; this type only holds the verification state.
type CommitteeChainVerifier struct {
// contains filtered or unexported fields
}
func LiftFromExternalCommitteeChainVerifier
func LiftFromExternalCommitteeChainVerifier(handle uint64) *CommitteeChainVerifier
func NewCommitteeChainVerifier
func NewCommitteeChainVerifier(trustedCommittee *ValidatorCommittee) (*CommitteeChainVerifier, error)
func (*CommitteeChainVerifier) Committee
func (_self *CommitteeChainVerifier) Committee() *ValidatorCommittee
The committee of the epoch whose closing checkpoint must be fed next.
func (*CommitteeChainVerifier) DebugString
func (_self *CommitteeChainVerifier) DebugString() string
func (*CommitteeChainVerifier) Destroy
func (object *CommitteeChainVerifier) Destroy()
func (*CommitteeChainVerifier) Epoch
func (_self *CommitteeChainVerifier) Epoch() uint64
The epoch whose closing checkpoint must be fed next.
func (*CommitteeChainVerifier) VerifyEpochClose
func (_self *CommitteeChainVerifier) VerifyEpochClose(summary *SignedCheckpointSummary) error
Verify `summary` as the certified closing checkpoint of the current epoch and advance to the committee it elects for the next epoch.