{
  "name": "crypto.verify",
  "description": "Verifies a signature using the configured combination algorithm",
  "signature": {
    "input": {
      "kind": "crypto-signature",
      "description": "Signed package to verify",
      "required": true,
      "mode": "ValueOrExpression"
    },
    "children": {
      "verification-key": {
        "type": "string|byte[]",
        "kind": "crypto-public-key",
        "description": "Public key used to verify the signature",
        "required": true,
        "mode": "ValueOrExpression",
        "cardinality": "ExactlyOne",
        "role": "Option",
        "projection": "Value"
      },
      "raw": {
        "type": "bool",
        "description": "Whether to return raw bytes instead of encoded text",
        "required": false,
        "mode": "ValueOrExpression",
        "cardinality": "ZeroOrOne",
        "default": "false",
        "role": "Option",
        "projection": "Value"
      }
    },
    "output": {
      "mode": "Value",
      "kind": "text,binary-content",
      "description": "Resolves to the verified content as text or raw bytes when [raw] is true"
    }
  }
}
