{
  "$schema": "http://json-schema.org/draft-04/schema",
  "title": "PublicKeyEC",
  "description": "The public key for an ECDSA JSON Cleartext Signature",
  "type": "object",
  "properties": {
    "type": {
      "description": "EC key type indicator.",
      "type": "string",
      "enum": [ "EC" ]
    },
    "curve": {
      "description": "EC curve ID",
      "type": "string",
      "enum": [
        "P-256"
      ]
    },
    "x": {
      "description": "EC curve point X.",
      "type": "string",
      "$ref": "Base64URL.json"
    },
    "y": {
      "description": "EC curve point Y.",
      "$ref": "Base64URL.json"
    }
  },
  "required": ["type", "curve", "x", "y"],
  "additionalProperties": false
}
