• Convert a JWK key into WebCrypto; a thin layer on top of WebCrypto, which gathers the right algorithmic details needed for the import itself.

    This function is also useful to the end user, so it is also meant to be re-exported via the index.ts module.

    Parameters

    • jwkKey: JsonWebKey
    • privateKey: boolean = false

      whether this is a private or public key

    Returns Promise<CryptoKey>