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

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

    Parameters

    • pem: string

      EdDSA private key as PEM

    • Optionalkid: string

      Key identifier (optional)

    Returns JsonWebKeyEdDSAPrivate