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.
Implements
Bencodex.IBencodable
Inherited Members
System.Object.GetType()
Assembly: Libplanet.Types.dll
Syntax
public class Validator : IEquatable<Validator>, IBencodable
Constructors
|
Improve this Doc
View Source
Validator(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(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.
|
Exceptions
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
[JsonIgnore]
public IValue Bencoded { get; }
Property Value
Type |
Description |
Bencodex.Types.IValue |
|
|
Improve this Doc
View Source
OperatorAddress
Declaration
[JsonIgnore]
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
|
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(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 |
Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
|
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
Overrides
|
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
Overrides
System.Object.ToString()
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
Bencodex.IBencodable