Show / Hide Table of Contents

CreateFromEncodedKey Method

CreateFromEncodedKey(ReadOnlyMemory<byte>)

Creates a new instance of CoseEdDsaPublicKey from the given encoded COSE key.

C#
public static CoseEdDsaPublicKey CreateFromEncodedKey(ReadOnlyMemory<byte> encodedCoseKey)

Parameters

Type Name Description
ReadOnlyMemory<byte> encodedCoseKey

The encoded COSE key in CBOR format.

Returns

CoseEdDsaPublicKey

A CoseEdDsaPublicKey object initialized with the provided encoded key data.

Exceptions

Type Condition
Ctap2DataException

Thrown if the encodedCoseKey is not a valid EdDSA Public Key encoding.

In this article
Back to top Generated by DocFX