Class StateProofTrackingData

StateProofTrackingData tracks the status of state proofs.

Implements

Constructors

  • Parameters

    • params: {
          stateProofNextRound: bigint;
          stateProofOnlineTotalWeight: bigint;
          stateProofVotersCommitment: Uint8Array;
      }
      • stateProofNextRound: bigint
      • stateProofOnlineTotalWeight: bigint
      • stateProofVotersCommitment: Uint8Array

    Returns StateProofTrackingData

Properties

stateProofNextRound: bigint

StateProofNextRound is the next round for which we will accept a StateProof transaction.

stateProofOnlineTotalWeight: bigint

StateProofOnlineTotalWeight is the total number of microalgos held by the online accounts during the StateProof round (or zero, if the merkle root is zero - no commitment for StateProof voters). This is intended for computing the threshold of votes to expect from StateProofVotersCommitment.

stateProofVotersCommitment: Uint8Array

StateProofVotersCommitment is the root of a vector commitment containing the online accounts that will help sign a state proof. The VC root, and the state proof, happen on blocks that are a multiple of ConsensusParams.StateProofRounds. For blocks that are not a multiple of ConsensusParams.StateProofRounds, this value is zero.

encodingSchema: NamedMapSchema = ...

Methods

  • Extract the encoding data for this object. This data, after being prepared by the encoding Schema, can be encoded to msgpack or JSON.

    Returns Map<string, unknown>

Generated using TypeDoc