Class Validator
A class designed for a langword_csharp_Validator of consensus.
A Validator consists of operator's PublicKey
and its corresponding langword_csharp_Power.
Inheritance
System.Object
Validator
Assembly: Libplanet.Types.dll
Syntax
public class Validator : IEquatable<Validator>
Constructors
|
Improve this Doc
View Source
Validator(Bencodex.Types.IValue)
A class designed for a langword_csharp_Validator of consensus.
A Validator consists of operator's PublicKey
and its corresponding langword_csharp_Power.
Declaration
public Validator(Bencodex.Types.IValue bencoded)
Parameters
Type |
Name |
Description |
Bencodex.Types.IValue |
bencoded |
|
|
Improve this Doc
View Source
Validator(PublicKey, BigInteger)
Creates an instance of Validator, with given publicKey
and power
.
Declaration
public Validator(PublicKey publicKey, BigInteger power)
Parameters
Type |
Name |
Description |
PublicKey |
publicKey |
The PublicKey
of validator operator.
|
BigInteger |
power |
The langword_csharp_Power of validator operator.
|
Properties
|
Improve this Doc
View Source
Bencoded
A class designed for a langword_csharp_Validator of consensus.
A Validator consists of operator's PublicKey
and its corresponding langword_csharp_Power.
Declaration
public Bencodex.Types.IValue Bencoded { get; }
Property Value
Type |
Description |
Bencodex.Types.IValue |
|
|
Improve this Doc
View Source
OperatorAddress
Declaration
public Address OperatorAddress { get; }
Property Value
|
Improve this Doc
View Source
Power
The langword_csharp_Power of validator.
Declaration
public BigInteger Power { get; }
Property Value
Type |
Description |
BigInteger |
|
|
Improve this Doc
View Source
PublicKey
Declaration
public PublicKey PublicKey { get; }
Property Value
Methods
|
Improve this Doc
View Source
Equals(Validator)
A class designed for a langword_csharp_Validator of consensus.
A Validator consists of operator's PublicKey
and its corresponding langword_csharp_Power.
Declaration
public bool Equals(Validator other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(Nullable<Object>)
A class designed for a langword_csharp_Validator of consensus.
A Validator consists of operator's PublicKey
and its corresponding langword_csharp_Power.
Declaration
public override bool Equals(object? obj)
Parameters
Type |
Name |
Description |
System.Nullable<System.Object> |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetHashCode()
A class designed for a langword_csharp_Validator of consensus.
A Validator consists of operator's PublicKey
and its corresponding langword_csharp_Power.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
ToString()
A class designed for a langword_csharp_Validator of consensus.
A Validator consists of operator's PublicKey
and its corresponding langword_csharp_Power.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Operators
|
Improve this Doc
View Source
Equality(Validator, Validator)
A class designed for a langword_csharp_Validator of consensus.
A Validator consists of operator's PublicKey
and its corresponding langword_csharp_Power.
Declaration
public static bool operator ==(Validator obj, Validator other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Inequality(Validator, Validator)
A class designed for a langword_csharp_Validator of consensus.
A Validator consists of operator's PublicKey
and its corresponding langword_csharp_Power.
Declaration
public static bool operator !=(Validator obj, Validator other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
IBencodable