Class StateProofMessage

Represents the message that the state proofs are attesting to.

Implements

Constructors

  • Creates a new StateProofMessage object.

    Parameters

    • __namedParameters: {
          blockheaderscommitment: string | Uint8Array;
          firstattestedround: number | bigint;
          lastattestedround: number | bigint;
          lnprovenweight: number | bigint;
          voterscommitment: string | Uint8Array;
      }
      • blockheaderscommitment: string | Uint8Array
      • firstattestedround: number | bigint
      • lastattestedround: number | bigint
      • lnprovenweight: number | bigint
      • voterscommitment: string | Uint8Array

    Returns modelsv2.StateProofMessage

Properties

blockheaderscommitment: Uint8Array

The vector commitment root on all light block headers within a state proof interval.

firstattestedround: bigint

The first round the message attests to.

lastattestedround: bigint

The last round the message attests to.

lnprovenweight: bigint

An integer value representing the natural log of the proven weight with 16 bits of precision. This value would be used to verify the next state proof.

voterscommitment: Uint8Array

The vector commitment root of the top N accounts to sign the next StateProof.

encodingSchemaValue: undefined | Schema

Accessors

Methods

Generated using TypeDoc