"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.importJWKKey = importJWKKey; const getWebCrypto_js_1 = require("./getWebCrypto.js"); /** * Convert a JWK-formatted public key into a WebCrypto CryptoKey that can be used for * signature verification */ async function importJWKKey(opts) { const WebCrypto = await (0, getWebCrypto_js_1.getWebCrypto)(); const { keyData, algorithm } = opts; return WebCrypto.subtle.importKey('jwk', keyData, algorithm, false, ['verify']); }