Show / Hide Table of Contents

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
Implements
IBencodable
Namespace: Libplanet.Types.Consensus
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

An Address of the validator operator's PublicKey.

Declaration
public Address OperatorAddress { get; }
Property Value
Type Description
Address
| 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

A PublicKey of validator operator.

Declaration
public PublicKey PublicKey { get; }
Property Value
Type Description
PublicKey

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
Type Name Description
Validator other
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
Type Name Description
Validator obj
Validator other
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
Type Name Description
Validator obj
Validator other
Returns
Type Description
System.Boolean

Implements

IBencodable
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium