Show / Hide Table of Contents

CreateFromPublicKeyData Method

CreateFromPublicKeyData(ReadOnlyMemory<byte>)

Construct a CoseEdDsaPublicKey based on public key data (x-coordinate of public key)

C#
public static CoseEdDsaPublicKey CreateFromPublicKeyData(ReadOnlyMemory<byte> publicKey)

Parameters

Type Name Description
ReadOnlyMemory<byte> publicKey

The x-coordinate of the public point.

Returns

CoseEdDsaPublicKey

Exceptions

Type Condition
ArgumentException

Thrown if the public key data is not the correct length.

Remarks

The only valid DSA curve is ED25519.

In this article
Back to top Generated by DocFX