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