Skip to main content

ValidatorsState

Represents the state of the validators.

Hierarchy

  • { chainId: Field; count: UInt32; hashSum: Field; root: Field }
    • ValidatorsState

Index

Constructors

externalconstructor

  • new ValidatorsState(value: { chainId: Field; count: UInt32; hashSum: Field; root: Field }): ValidatorsState
  • Parameters

    • externalvalue: { chainId: Field; count: UInt32; hashSum: Field; root: Field }
      • externalchainId: Field = Field

        Chain ID (e.g., 'mina:mainnet')

      • externalcount: UInt32 = UInt32

        Number of validators

      • externalhashSum: Field = Field

        Sum of the hashes of validators' public keys

      • externalroot: Field = Field

        Merkle root of the ValidatorsList

    Returns ValidatorsState

Properties

chainId

chainId: Field = Field

Chain ID (e.g., 'mina:mainnet')

count

count: UInt32 = UInt32

Number of validators

hashSum

hashSum: Field = Field

Sum of the hashes of validators' public keys

root

root: Field = Field

Merkle root of the ValidatorsList

Methods

hash

  • hash(): Field
  • Computes the hash of the validators state.


    Returns Field

    Hash of the current state.

staticassertEquals

  • Asserts that two ValidatorsState instances are equal.


    Parameters

    Returns void

staticempty

  • Returns an empty ValidatorsState.


    Returns ValidatorsState

    An empty ValidatorsState instance.