ValidatorCommittee
Namespace: IotaSdk
The Validator Set for a particular epoch.
BCS
The BCS serialized form of this type is specified in
bcs-schema.abnf.
public class ValidatorCommittee : IValidatorCommittee, System.IEquatable`1[[IotaSdk.ValidatorCommittee, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable
Inheritance Object → ValidatorCommittee
Implements IValidatorCommittee, IEquatable<ValidatorCommittee>, IDisposable
Attributes NullableContextAttribute, NullableAttribute
Constructors
ValidatorCommittee(UInt64)
public ValidatorCommittee(ulong pointer)
Parameters
pointer UInt64
ValidatorCommittee(UInt64, ValidatorCommitteeMember[])
Construct a ValidatorCommittee and verify it via validate.
public ValidatorCommittee(ulong epoch, ValidatorCommitteeMember[] members)
Parameters
epoch UInt64
members ValidatorCommitteeMember[]
Methods
Destroy()
public void Destroy()
Dispose()
public void Dispose()
Epoch()
public ulong Epoch()
Returns
Members()
public ValidatorCommitteeMember[] Members()
Returns
ToBcs()
Convert this type to BCS encoded bytes.
public Byte[] ToBcs()
Returns
Exceptions
ToDisplayString()
Render this type as human-readable text.
Some types also print this through the binding's native string conversion; this method is the spelling every object type has.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
public string ToDisplayString()
Returns
ToJson()
Convert this type to a JSON encoded string.
public string ToJson()
Returns
Exceptions
TotalStake()
The combined stake of all members.
public ulong TotalStake()
Returns
Exceptions
Validate()
Checks if the committee is valid.
A valid committee is one that:
- Has at least one member
- Has a nonzero total stake that fits in a
u64 - Contains no duplicate public keys
public void Validate()
Exceptions
Equals(ValidatorCommittee)
public bool Equals(ValidatorCommittee? other)
Parameters
other ValidatorCommittee?
Returns
Equals(Object)
public override bool Equals(object? obj)
Parameters
obj Object?
Returns
FromBcs(Byte[])
Create this type from BCS encoded bytes.
public static ValidatorCommittee FromBcs(Byte[] bcs)
Parameters
bcs Byte[]
Returns
Exceptions
FromJson(String)
Create this type from a JSON encoded string.
public static ValidatorCommittee FromJson(string json)
Parameters
json String