Type alias JwkParamsEcPublic

JwkParamsEcPublic: Omit<JwkParamsAnyKeyType, "alg" | "kty"> & {
    alg?: "ES256" | "ES256K" | "ES384" | "ES512";
    crv: "secp256k1" | "P-256" | "P-384" | "P-521";
    kty: "EC";
    x: string;
    y?: string;
}

Parameters used with "EC" (elliptic curve) public keys.

Type declaration

  • Optional alg?: "ES256" | "ES256K" | "ES384" | "ES512"

    The algorithm intended for use with the key. ES256 : ECDSA using P-256 and SHA-256 ES256K : ECDSA using secp256k1 curve and SHA-256 ES384 : ECDSA using P-384 and SHA-384 ES512 : ECDSA using P-521 and SHA-512

  • crv: "secp256k1" | "P-256" | "P-384" | "P-521"

    The cryptographic curve used with the key. MUST be present for all EC public keys.

  • kty: "EC"

    Elliptic Curve key pair.

  • x: string

    The x-coordinate for the Elliptic Curve point. Represented as the base64url encoding of the octet string representation of the coordinate. MUST be present for all EC public keys

  • Optional y?: string

    The y-coordinate for the Elliptic Curve point. Represented as the base64url encoding of the octet string representation of the coordinate. MUST be present only for secp256k1 public keys.