Table of Contents

Struct EcdsaPublicKey

Namespace
SodotSDK.Ecdsa
Assembly
Unity.Temp.dll

An ECDSA public key, generated by the Keygen(Uuid, ushort, ushort, KeygenSecret, KeygenId[]) function. You can get the compressed form (33 bytes) via the serializeCompressed function, or the uncompressed form (65 bytes) via the serializeUncompressed function.

public struct EcdsaPublicKey
Inherited Members

Constructors

EcdsaPublicKey(string)

Initializes a new instance of the EcdsaPublicKey struct from a hex string.

public EcdsaPublicKey(string data)

Parameters

data string

The public key as a hex string.

Properties

Data

The uncompressed public key as a byte array. If the array is 65 bytes long (SEC1 encoding), the first byte will be ignored.

public byte[] Data { readonly get; set; }

Property Value

byte[]

Methods

Compressed()

Gets the compressed form of the public key.

public byte[] Compressed()

Returns

byte[]

The compressed public key bytes.

Exceptions

SodotException

If the public key is not compressed.

Uncompressed()

Gets the uncompressed form of the public key.

public byte[] Uncompressed()

Returns

byte[]

The uncompressed public key bytes.

Exceptions

SodotException

If the public key is not uncompressed.