{
  "type": "object",
  "definitions": {
    "MlDsaSignTestGroup": {
      "type": "object",
      "properties": {
        "type": {
          "enum": ["MlDsaSign"]
        },
        "privateSeed": {
          "type": "string",
          "format": "HexBytes",
          "description": "32-byte seed that generated the private key"
        },
        "privateKeyPkcs8": {
          "type": "string",
          "format": "Der",
          "description": "Private key as a DER-encoded PrivateKeyInfo, using the seed form"
        },
        "publicKey": {
          "oneOf": [
            {
              "type": "string",
              "format": "HexBytes"
            },
            {
              "type": "null"
            }
          ],
          "description": "Encoded ML-DSA public key derived from the private seed, or null if the private seed is invalid"
        },
        "tests": {
          "type": "array",
          "items": {
            "$ref": "mldsa_sign_common.json#/definitions/MlDsaSignTestVector"
          }
        },
        "source": {
          "$ref": "common.json#/definitions/Source"
        }
      },
      "additionalProperties": false,
      "required": ["type", "privateSeed", "publicKey", "tests", "source"]
    }
  },
  "properties": {
    "algorithm": {
      "type": "string",
      "description": "the primitive tested in the test file"
    },
    "header": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "additional documentation"
    },
    "notes": {
      "$ref": "common.json#/definitions/Notes"
    },
    "numberOfTests": {
      "type": "integer",
      "description": "the number of test vectors in this test"
    },
    "schema": {
      "enum": ["mldsa_sign_seed_schema.json"]
    },
    "testGroups": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/MlDsaSignTestGroup"
      }
    }
  },
  "additionalProperties": false,
  "required": ["algorithm", "header", "notes", "numberOfTests", "schema", "testGroups"]
}
