Casper.Network.SDK
Show / Hide Table of Contents

Class Signature

A wrapper for a cryptographic signature.

Inheritance
object
Signature
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Casper.Network.SDK.Types
Assembly: Casper.Network.SDK.dll
Syntax
public class Signature

Constructors

| Edit this page View Source

Signature(byte[], KeyAlgo)

Declaration
protected Signature(byte[] rawBytes, KeyAlgo keyAlgo)
Parameters
Type Name Description
byte[] rawBytes
KeyAlgo keyAlgo

Properties

| Edit this page View Source

KeyAlgorithm

Declaration
public KeyAlgo KeyAlgorithm { get; }
Property Value
Type Description
KeyAlgo
| Edit this page View Source

RawBytes

Byte array without the Key algorithm identifier.

Declaration
public byte[] RawBytes { get; }
Property Value
Type Description
byte[]

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
Type Description
Signature
| 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
Type Description
Signature
| 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
Type Name Description
byte[] rawBytes
KeyAlgo keyAlgo
Returns
Type Description
Signature
| Edit this page View Source

GetBytes()

Returns the bytes of the signature, including the Key algorithm as the first byte.

Declaration
public byte[] GetBytes()
Returns
Type Description
byte[]
| 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
Type Description
string
| 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
object.ToString()
  • Edit this page
  • View Source
In this article
Back to top Maintained by MAKE Technology LLC