Class InvalidBlockSignatureException
An exception thrown when a block's signature is invalid.
Namespace: Libplanet.Types.Blocks
Assembly: Libplanet.Types.dll
Syntax
public class InvalidBlockSignatureException : InvalidBlockException
Constructors
| Improve this Doc View SourceInvalidBlockSignatureException(SerializationInfo, StreamingContext)
An exception thrown when a block's signature is invalid.
Declaration
protected InvalidBlockSignatureException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |
InvalidBlockSignatureException(String, PublicKey, Nullable<ImmutableArray<Byte>>)
Creates a new InvalidBlockPublicKeyException instance.
Declaration
public InvalidBlockSignatureException(string message, PublicKey publicKey, ImmutableArray<byte>? invalidSignature)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | A message that describes the error. |
PublicKey | publicKey | The public key used for signing the block. |
System.Nullable<ImmutableArray<System.Byte>> | invalidSignature | The block signature which is invalid. |
Properties
| Improve this Doc View SourceInvalidSignature
The block signature which is invalid.
Declaration
public ImmutableArray<byte>? InvalidSignature { get; }
Property Value
Type | Description |
---|---|
System.Nullable<ImmutableArray<System.Byte>> |
PublicKey
The public key used for signing the block.
Declaration
public PublicKey PublicKey { get; }
Property Value
Type | Description |
---|---|
PublicKey |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
An exception thrown when a block's signature is invalid.
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |