Converts an EdDSA public key as PEM to JSON Web Key (JWK) object. Only Curve25519 and X25519 are supported.

  • Converts an EdDSA public key as PEM to JSON Web Key (JWK) object. Only Curve25519 and X25519 are supported.

    Parameters

    • pem: string

      EdDSA public key as PEM

    • Optionalkid: string

      Key identifier (optional)

    Returns JsonWebKeyEdDSAPublic