Class Signature
A wrapper for a cryptographic signature.
Assembly: Casper.Network.SDK.dll
Syntax
Constructors
|
Edit this page
View Source
Signature(byte[], KeyAlgo)
Declaration
protected Signature(byte[] rawBytes, KeyAlgo keyAlgo)
Parameters
Properties
|
Edit this page
View Source
KeyAlgorithm
Declaration
public KeyAlgo KeyAlgorithm { get; }
Property Value
|
Edit this page
View Source
RawBytes
Byte array without the Key algorithm identifier.
Declaration
public byte[] RawBytes { get; }
Property Value
Methods
|
Edit this page
View Source
FromBytes(byte[])
Creates a PublicKey object from a byte array (containing the
Key algorithm identifier).
Declaration
public static Signature FromBytes(byte[] bytes)
Parameters
| Type |
Name |
Description |
| byte[] |
bytes |
|
Returns
|
Edit this page
View Source
FromHexString(string)
Creates a Signature object from an hexadecimal string (containing the
Key algorithm identifier).
Declaration
public static Signature FromHexString(string signature)
Parameters
| Type |
Name |
Description |
| string |
signature |
|
Returns
|
Edit this page
View Source
FromRawBytes(byte[], KeyAlgo)
Creates a Signature object from a byte array and the key algorithm identifier.
Declaration
public static Signature FromRawBytes(byte[] rawBytes, KeyAlgo keyAlgo)
Parameters
Returns
|
Edit this page
View Source
GetBytes()
Returns the bytes of the signature, including the Key algorithm as the first byte.
Declaration
Returns
|
Edit this page
View Source
ToHexString()
Returns the signature as an hexadecimal string, including the key algorithm in the first position.
Declaration
public string ToHexString()
Returns
|
Edit this page
View Source
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type |
Description |
| string |
A string that represents the current object.
|
Overrides