Skip to main content
Module

x/fido2/lib/keyUtils.js>PublicKey#fromCose

A node.js library for performing FIDO 2.0 / WebAuthn server functionality
Go to Latest
method PublicKey.prototype.fromCose
import { PublicKey } from "https://deno.land/x/fido2@3.3.4/lib/keyUtils.js";

Import public key from COSE data. Throws on any type of failure.

Internally this function converts COSE to a JWK, then calls .fromJwk() to import key to CryptoKey

Parameters

cose
  • COSE data