Class StateProofMessage

An interface for objects that can be encoded and decoded to/from msgpack and JSON.

Implements

Constructors

  • Parameters

    • params: {
          blockHeadersCommitment: Uint8Array;
          firstAttestedRound: bigint;
          lastAttestedRound: bigint;
          lnProvenWeight: bigint;
          votersCommitment: Uint8Array;
      }
      • blockHeadersCommitment: Uint8Array
      • firstAttestedRound: bigint
      • lastAttestedRound: bigint
      • lnProvenWeight: bigint
      • votersCommitment: Uint8Array

    Returns StateProofMessage

Properties

blockHeadersCommitment: Uint8Array
firstAttestedRound: bigint
lastAttestedRound: bigint
lnProvenWeight: bigint
votersCommitment: Uint8Array
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