Show / Hide Table of Contents

Class InvalidBlockEvidenceHashException

Inheritance
System.Object
InvalidBlockException
InvalidBlockEvidenceHashException
Implements
IEquatable<InvalidBlockEvidenceHashException>
Namespace: Libplanet.Types.Blocks
Assembly: Libplanet.Types.dll
Syntax
public class InvalidBlockEvidenceHashException : InvalidBlockException

Constructors

| Improve this Doc View Source

InvalidBlockEvidenceHashException(SerializationInfo, StreamingContext)

Declaration
protected InvalidBlockEvidenceHashException(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info
StreamingContext context
| Improve this Doc View Source

InvalidBlockEvidenceHashException(String, Nullable<HashDigest<SHA256>>, Nullable<HashDigest<SHA256>>)

Initializes a new instance of InvalidBlockEvidenceHashException class.

Declaration
public InvalidBlockEvidenceHashException(string message, HashDigest<SHA256>? blockEvidenceHash, HashDigest<SHA256>? calculatedEvidenceHash)
Parameters
Type Name Description
System.String message

The message that describes the error.

System.Nullable<HashDigest<SHA256>> blockEvidenceHash

The hash digest of EvidenceHash.

System.Nullable<HashDigest<SHA256>> calculatedEvidenceHash

The calculated hash digest from Evidence.

Properties

| Improve this Doc View Source

BlockEvidenceHash

The hash digest from actual block.

Declaration
public HashDigest<SHA256>? BlockEvidenceHash { get; }
Property Value
Type Description
System.Nullable<HashDigest<SHA256>>
| Improve this Doc View Source

CalculatedEvidenceHash

The calculated hash digest from evidence in the block.

Declaration
public HashDigest<SHA256>? CalculatedEvidenceHash { get; }
Property Value
Type Description
System.Nullable<HashDigest<SHA256>>

Methods

| Improve this Doc View Source

Equals(InvalidBlockEvidenceHashException)

Declaration
public bool Equals(InvalidBlockEvidenceHashException other)
Parameters
Type Name Description
InvalidBlockEvidenceHashException other
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Equals(Nullable<Object>)

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()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
| Improve this Doc View Source

GetObjectData(SerializationInfo, StreamingContext)

Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info
StreamingContext context

Operators

| Improve this Doc View Source

Equality(InvalidBlockEvidenceHashException, InvalidBlockEvidenceHashException)

Declaration
public static bool operator ==(InvalidBlockEvidenceHashException left, InvalidBlockEvidenceHashException right)
Parameters
Type Name Description
InvalidBlockEvidenceHashException left
InvalidBlockEvidenceHashException right
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Inequality(InvalidBlockEvidenceHashException, InvalidBlockEvidenceHashException)

Declaration
public static bool operator !=(InvalidBlockEvidenceHashException left, InvalidBlockEvidenceHashException right)
Parameters
Type Name Description
InvalidBlockEvidenceHashException left
InvalidBlockEvidenceHashException right
Returns
Type Description
System.Boolean

Implements

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