Show / Hide Table of Contents

UserPublicKey Property

UserPublicKey

The ECDSA public key for this user credential. Each coordinate must be 32 bytes and the point must be on the P256 curve.

C#
public ReadOnlyMemory<byte> UserPublicKey { get; set; }

Property Value

Type Description
ReadOnlyMemory<byte>

Remarks

This is the public key that will be used to verify an authentication. Save this key and pass it into the VerifySignature(ReadOnlyMemory<byte>, ReadOnlyMemory<byte>) method when verifying for authentication.

This is a public key for ECDSA using the NIST P256 curve and SHA256, per the FIDO specifications.

If you want to get the public key as an instance of ECPoint, do this.

var pubKeyPoint = new ECPoint
{
    X = UserPublicKey.Slice(1, 32).ToArray(),
    Y = UserPublicKey.Slice(33, 32).ToArray(),
};
In this article
Back to top Generated by DocFX