Skip to main content

Class: 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.

Extends​

  • UniffiAbstractObject

Implements​

Constructors​

Constructor​

new CommitteeChainVerifier(trustedCommittee): CommitteeChainVerifier;

Parameters​

trustedCommittee​

ValidatorCommitteeLike

Returns​

CommitteeChainVerifier

Overrides​

UniffiAbstractObject.constructor

Properties​

[destructorGuardSymbol]​

readonly [destructorGuardSymbol]: UniffiGcObject;

[pointerLiteralSymbol]​

readonly [pointerLiteralSymbol]: bigint;

[uniffiTypeNameSymbol]​

readonly [uniffiTypeNameSymbol]: "CommitteeChainVerifier" = "CommitteeChainVerifier";

Methods​

committee()​

committee(): ValidatorCommitteeLike;

The committee of the epoch whose closing checkpoint must be fed next.

Returns​

ValidatorCommitteeLike

Implementation of​

CommitteeChainVerifierLike.committee


epoch()​

epoch(): bigint;

The epoch whose closing checkpoint must be fed next.

Returns​

bigint

Implementation of​

CommitteeChainVerifierLike.epoch


toDebugString()​

toDebugString(): string;

Returns​

string


toString()​

toString(): string;

Returns a string representation of an object.

Returns​

string


uniffiDestroy()​

uniffiDestroy(): void;

Explicitly tell Rust to destroy the native peer that backs this object.

Once this method has been called, any following method calls will throw an error.

Can be called more than once.

Returns​

void

Overrides​

UniffiAbstractObject.uniffiDestroy


uniffiUse()​

uniffiUse<T>(block): T;

A convenience method to use this object, then destroy it after its use.

Type Parameters​

T​

T

Parameters​

block​

(obj) => T

Returns​

T

Inherited from​

UniffiAbstractObject.uniffiUse


verifyEpochClose()​

verifyEpochClose(summary): void;

Verify summary as the certified closing checkpoint of the current epoch and advance to the committee it elects for the next epoch.

Parameters​

summary​

SignedCheckpointSummaryLike

Returns​

void

Implementation of​

CommitteeChainVerifierLike.verifyEpochClose


instanceOf()​

static instanceOf(obj_): obj_ is CommitteeChainVerifier;

Parameters​

obj_​

any

Returns​

obj_ is CommitteeChainVerifier