ValidatorsState
Hierarchy
- { chainId: Field; count: UInt32; hashSum: Field; root: Field }
- ValidatorsState
Index
Constructors
externalconstructor
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
Chain ID (e.g., 'mina:mainnet')
count
Number of validators
hashSum
Sum of the hashes of validators' public keys
root
Merkle root of the ValidatorsList
Methods
hash
Computes the hash of the validators state.
Returns Field
Hash of the current state.
staticassertEquals
Asserts that two
ValidatorsState
instances are equal.Parameters
a: ValidatorsState
First
ValidatorsState
instance.b: ValidatorsState
Second
ValidatorsState
instance.
Returns void
staticempty
Returns an empty
ValidatorsState
.Returns ValidatorsState
An empty
ValidatorsState
instance.
Represents the state of the validators.