• Signature algorithm name to key type.

    Parameters

    • alg: "EdDSA" | "ES256" | "ES384" | "ES512" | "ES256K" | "RS256"

    Returns "Ed25519" | "P-256" | "P-384" | "P-521" | "secp256k1" | "RSA"

    if the algorithm is not supported.