{
  "name": "tdid",
  "display_name": "分布式身份",
  "description": "API接口提供基础的创建DID、查询DID文档、更新VC、验证凭证、颁发凭证、本地密钥管理、数字身份标识DID管理、电子凭证Credential管理、授权机构（Authority Issuer）管理、CPT（Claim Protocol Type）管理、存证（Evidence）管理、AMOP链上数据通道、凭证传输（Transportation）管理等一系列功能。",
  "domain": "other",
  "api_version": "2021-05-19",
  "endpoint": "tdid.tencentcloudapi.com",
  "actions": [
    {
      "name": "CreateDisclosedCredential",
      "description": "根据披露策略创建选择性披露凭证",
      "status": "online",
      "parameters": [
        {
          "name": "PolicyId",
          "type": "integer",
          "required": false,
          "description": "披露策略id，PolicyJson和PolicyId任选其一",
          "example": "2000000"
        },
        {
          "name": "CredentialData",
          "type": "string",
          "required": false,
          "description": "凭证文本内容，FunctionArg和CredentialText任选其一",
          "example": "{\"cptId\":1}"
        },
        {
          "name": "PolicyJson",
          "type": "string",
          "required": false,
          "description": "披露策略文本",
          "example": "{\"age\":0}"
        },
        {
          "name": "DAPId",
          "type": "integer",
          "required": false,
          "description": "DID应用ID",
          "example": "1"
        },
        {
          "name": "UAPId",
          "type": "integer",
          "required": false,
          "description": "用户应用ID",
          "example": "1"
        }
      ],
      "required": []
    },
    {
      "name": "CreatePresentation",
      "description": "创建凭证持有人的可验证表达",
      "status": "online",
      "parameters": [
        {
          "name": "DAPId",
          "type": "integer",
          "required": false,
          "description": "DID应用id",
          "example": "1"
        },
        {
          "name": "UAPId",
          "type": "integer",
          "required": false,
          "description": "用户应用id",
          "example": "1"
        },
        {
          "name": "Credentials",
          "type": "array",
          "required": false,
          "description": "凭证列表",
          "example": "[\"credential1\", \"credential2\"]",
          "item_type": "string"
        },
        {
          "name": "Did",
          "type": "string",
          "required": false,
          "description": "VP持有人的DID标识",
          "example": "did:tdid:c52:0xfd28ad212a2de77fee518b4914b8579a40c601fa"
        },
        {
          "name": "VerifyCode",
          "type": "string",
          "required": false,
          "description": "VP随机验证码",
          "example": "RIflyg"
        },
        {
          "name": "PolicyJson",
          "type": "string",
          "required": false,
          "description": "选择性披露策略",
          "example": "{”action\":1}"
        },
        {
          "name": "Unsigned",
          "type": "boolean",
          "required": false,
          "description": "是否签名，ture时signatureValue为待签名内容由调用端自行签名，false时signatureValue为平台自动已签名的内容。默认false",
          "example": "true"
        },
        {
          "name": "CredentialList",
          "type": "array",
          "required": false,
          "description": "可验证凭证证明列表",
          "example": "无",
          "item_type": "object",
          "children": [
            {
              "name": "Credential",
              "type": "string",
              "required": true,
              "description": "可验证凭证内容",
              "example": "{\\n\\t\\\"cptId\\\": 1,\\n\\t\\\"issuer\\\": \\\"did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb\\\",\\n\\t\\\"expirationDate\\\": \\\"2023-12-01T10:00:00+08:00\\\",\\n\\t\\\"issuanceDate\\\": \\\"2023-09-19T20:13:36+08:00\\\",\\n\\t\\\"context\\\": \\\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\\\",\\n\\t\\\"id\\\": \\\"fw1652844bee8e5ecf1b404242b83f1b\\\",\\n\\t\\\"type\\\": [\\\"VerifiableCredential\\\"],\\n\\t\\\"credentialSubject\\\": {\\n\\t\\t\\\"CredentialStatus\\\": {\\n\\t\\t\\t\\\"id\\\": \\\"8818fdd61eb84e4a745a3b04c96e5237\\\",\\n\\t\\t\\t\\\"issuer\\\": \\\"did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb\\\",\\n\\t\\t\\t\\\"status\\\": 1\\n\\t\\t},\\n\\t\\t\\\"action\\\": \\\"updateCredentialState\\\",\\n\\t\\t\\\"orignCredential\\\": \\\"{\\\\\\\"cptId\\\\\\\":1,\\\\\\\"issuer\\\\\\\":\\\\\\\"did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb\\\\\\\",\\\\\\\"expirationDate\\\\\\\":\\\\\\\"2023-12-01T10:00:00+08:00\\\\\\\",\\\\\\\"issuanceDate\\\\\\\":\\\\\\\"2023-09-19T20:04:20+08:00\\\\\\\",\\\\\\\"context\\\\\\\":\\\\\\\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\\\\\\\",\\\\\\\"id\\\\\\\":\\\\\\\"8818fdd61eb84e4a745a3b04c96e5237\\\\\\\",\\\\\\\"type\\\\\\\":[\\\\\\\"VerifiableCredential\\\\\\\"],\\\\\\\"credentialSubject\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"updateCredentialState\\\\\\\"},\\\\\\\"proof\\\\\\\":{\\\\\\\"created\\\\\\\":\\\\\\\"2023-09-19T20:04:20+08:00\\\\\\\",\\\\\\\"creator\\\\\\\":\\\\\\\"did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb#keys-0\\\\\\\",\\\\\\\"signatureValue\\\\\\\":\\\\\\\"MEUCIQDUneIwlLbh5AFjQt9HJhIZAQshT45/Em8hVOUjHcdu0QIgL3rg3A99qGGNszstF+GTV5IU4vT9OnI1lqM3f0w1JmI=\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"Secp256r1\\\\\\\",\\\\\\\"metaDigest\\\\\\\":\\\\\\\"6a216f84cb9w1b6170cb017cccd6w1d0b81aad200d5691914d6045471d0dd1ad\\\\\\\",\\\\\\\"vcDigest\\\\\\\":\\\\\\\"c7e13w1bcfa879c922f9141d085facc0ce1973e8d27d48238130739c1a332dcf\\\\\\\",\\\\\\\"privacy\\\\\\\":\\\\\\\"Public\\\\\\\",\\\\\\\"salt\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"HZdDU\\\\\\\"}}}\\\"\\n\\t},\\n\\t\\\"proof\\\": {\\n\\t\\t\\\"created\\\": \\\"2023-09-19T20:13:36+08:00\\\",\\n\\t\\t\\\"creator\\\": \\\"did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb#keys-0\\\",\\n\\t\\t\\\"signatureValue\\\": \\\"MEUCIDkLg6EqmwvEHYLtjumpeqKz/hIi6EROMDXPPpNIxORHAiEA8T0LMI59tkBTz+llu/GkjToj5M8k5SwXFoU3fnjQ3mo=\\\",\\n\\t\\t\\\"type\\\": \\\"Secp256r1\\\",\\n\\t\\t\\\"metaDigest\\\": \\\"46894b7f54365d685ba587608d2b74f800404ebb76f5c32dd90bc3916e844ae2\\\",\\n\\t\\t\\\"vcDigest\\\": \\\"d086ba831ab3185971c168w125bf2bd487d7eced3ede8d623b30cfe9da03bcaf\\\",\\n\\t\\t\\\"privacy\\\": \\\"Public\\\",\\n\\t\\t\\\"salt\\\": {\\n\\t\\t\\t\\\"CredentialStatus\\\": {\\n\\t\\t\\t\\t\\\"id\\\": \\\"4dPOH\\\",\\n\\t\\t\\t\\t\\\"issuer\\\": \\\"OJH5M\\\",\\n\\t\\t\\t\\t\\\"status\\\": \\\"lm2W4\\\"\\n\\t\\t\\t},\\n\\t\\t\\t\\\"action\\\": \\\"r95wA\\\",\\n\\t\\t\\t\\\"orignCredential\\\": \\\"b3H4j\\\"\\n\\t\\t}\\n\\t}\\n}"
            }
          ]
        }
      ],
      "required": []
    },
    {
      "name": "CreateTDidByHost",
      "description": "自动生成公私钥对托管在DID平台，并注册DID标识",
      "status": "online",
      "parameters": [
        {
          "name": "DAPId",
          "type": "integer",
          "required": false,
          "description": "DID应用ID",
          "example": "1"
        },
        {
          "name": "CustomAttribute",
          "type": "string",
          "required": false,
          "description": "自定义DID文档json属性",
          "example": "{\"name\":\"张三\"}"
        }
      ],
      "required": []
    },
    {
      "name": "CreateTDidByPubKey",
      "description": "使用导入的公钥文件注册DID标识",
      "status": "online",
      "parameters": [
        {
          "name": "DAPId",
          "type": "integer",
          "required": false,
          "description": "DID应用id",
          "example": "1"
        },
        {
          "name": "PublicKey",
          "type": "string",
          "required": false,
          "description": "pem格式的认证公钥",
          "example": "-----BEGIN PUBLIC KEY-----\\r\\nMFkwEwYHKoZIzj0CAQYIKoEcz1UBgi0DQgAEdPxYz6u53NB5WqgESSaRYwDSPeBUuyke8CTlyWn7/BYpbRKQTzt3b3O+QYeMSJULvclDsj+pFCZPh9lLrBNU6w==\\r\\n-----END PUBLIC KEY-----"
        },
        {
          "name": "CustomAttribute",
          "type": "string",
          "required": false,
          "description": "自定义DID初始化属性json字符串",
          "example": "{\"name\":\"李四\"}"
        },
        {
          "name": "IgnoreExisted",
          "type": "integer",
          "required": false,
          "description": "0:did存在返回错误，1:did存在返回该did，默认:0",
          "example": "1"
        }
      ],
      "required": []
    },
    {
      "name": "DeactivateTDid",
      "description": "更新DID标识的禁用状态",
      "status": "online",
      "parameters": [
        {
          "name": "Did",
          "type": "string",
          "required": false,
          "description": "DID标识符",
          "example": "did:tdid:w1:0x05cdde231b90dbcb1e0a9e7a616bf17c7168c2ac"
        },
        {
          "name": "OperateCredential",
          "type": "string",
          "required": false,
          "description": "设置DID禁用状态的临时凭证内容，通过创建凭证接口(CreateCredential)生成并签名，凭证类型为：OperateCredential, 为安全起见凭证过期时间不适合太长，建议设置为1分钟内",
          "example": "{\\n\\t\\\"cptId\\\": 1,\\n\\t\\\"issuer\\\": \\\"did:tdid:c5:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb\\\",\\n\\t\\\"expirationDate\\\": \\\"2023-12-01T10:00:00+08:00\\\",\\n\\t\\\"issuanceDate\\\": \\\"2023-09-19T19:50:52+08:00\\\",\\n\\t\\\"context\\\": \\\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\\\",\\n\\t\\\"id\\\": \\\"250d0563e9d680c4d2c33b428913442f\\\",\\n\\t\\\"type\\\": [\\\"VerifiableCredential\\\"],\\n\\t\\\"credentialSubject\\\": {\\n\\t\\t\\\"action\\\": \\\"deactiveDid\\\",\\n\\t\\t\\\"deactivated\\\": \\\"true\\\",\\n\\t\\t\\\"did\\\": \\\"did:tdid:c5:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb\\\"\\n\\t},\\n\\t\\\"proof\\\": {\\n\\t\\t\\\"created\\\": \\\"2023-09-19T19:50:52+08:00\\\",\\n\\t\\t\\\"creator\\\": \\\"did:tdid:c5:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb#keys-0\\\",\\n\\t\\t\\\"signatureValue\\\": \\\"MEYCIQDSQFpHNt7xltx+dPhwHDrY3kJpMG+hE7Klh/c11Ce3WQIhAOFaISj1kvk8TjrlMaoTAAhoAiriBFj0lLwWyNp69kW7\\\",\\n\\t\\t\\\"type\\\": \\\"Secp256r1\\\",\\n\\t\\t\\\"metaDigest\\\": \\\"9b916ba1e4435f752052fbafe3ed270b61f729feade30fec20aeef4dbac16712\\\",\\n\\t\\t\\\"vcDigest\\\": \\\"692c38a285093f538821f7cce3ddc8358f10f219e991faf226356043228eda24\\\",\\n\\t\\t\\\"privacy\\\": \\\"Public\\\",\\n\\t\\t\\\"salt\\\": {\\n\\t\\t\\t\\\"action\\\": \\\"CTtap\\\",\\n\\t\\t\\t\\\"deactivated\\\": \\\"1jfRX\\\",\\n\\t\\t\\t\\\"did\\\": \\\"D8ukJ\\\"\\n\\t\\t}\\n\\t}\\n}"
        },
        {
          "name": "DAPId",
          "type": "integer",
          "required": false,
          "description": "DID应用Id",
          "example": "1"
        },
        {
          "name": "Deactivated",
          "type": "string",
          "required": false,
          "description": "是否禁用",
          "example": "true"
        }
      ],
      "required": []
    },
    {
      "name": "GetAppSummary",
      "description": "获取某个应用关键指标统计数据",
      "status": "online",
      "parameters": [
        {
          "name": "DAPId",
          "type": "integer",
          "required": false,
          "description": "DID应用Id",
          "example": "1"
        }
      ],
      "required": []
    },
    {
      "name": "GetCredentialState",
      "description": "获取凭证链上状态信息",
      "status": "online",
      "parameters": [
        {
          "name": "CredentialId",
          "type": "string",
          "required": false,
          "description": "凭证唯一Id",
          "example": "19d88ecb3f04997ccc64d425259ade0d"
        },
        {
          "name": "DAPId",
          "type": "integer",
          "required": false,
          "description": "用户应用Id",
          "example": "1"
        }
      ],
      "required": []
    },
    {
      "name": "GetOverSummary",
      "description": "获取某个应用关键指标统计数据",
      "status": "online",
      "parameters": [],
      "required": []
    },
    {
      "name": "GetTDidByObjectId",
      "description": "通过业务层绑定的对象ID获取DID标识",
      "status": "online",
      "parameters": [
        {
          "name": "ObjectId",
          "type": "string",
          "required": false,
          "description": "业务层为DID设置的唯一标识",
          "example": "user-test"
        },
        {
          "name": "DAPId",
          "type": "integer",
          "required": false,
          "description": "DID应用Id",
          "example": "1"
        }
      ],
      "required": []
    },
    {
      "name": "GetTDidDocument",
      "description": "获取DID标识的文档",
      "status": "online",
      "parameters": [
        {
          "name": "Did",
          "type": "string",
          "required": false,
          "description": "DID标识",
          "example": "did:tdid:w1:0xa75368ab6ab9cb6d01e81d22155279ee4eca3f4d"
        },
        {
          "name": "DAPId",
          "type": "integer",
          "required": false,
          "description": "DID应用ID",
          "example": "1"
        }
      ],
      "required": []
    },
    {
      "name": "GetTDidPubKey",
      "description": "查询DID标识的认证公钥",
      "status": "online",
      "parameters": [
        {
          "name": "Did",
          "type": "string",
          "required": false,
          "description": "DID标识",
          "example": "did:tdid:w1:0xecfbcad58adefc645de2144afa450ad4eb28c758"
        },
        {
          "name": "DAPId",
          "type": "integer",
          "required": false,
          "description": "DID应用Id",
          "example": "1"
        }
      ],
      "required": []
    },
    {
      "name": "IssueCredential",
      "description": "颁发可验证凭证",
      "status": "online",
      "parameters": [
        {
          "name": "CRDLArg",
          "type": "object",
          "required": false,
          "description": "参数集合，详见示例",
          "example": "无",
          "children": [
            {
              "name": "CPTId",
              "type": "integer",
              "required": true,
              "description": "CPT ID",
              "example": "1"
            },
            {
              "name": "Issuer",
              "type": "string",
              "required": true,
              "description": "签发者 did",
              "example": "1"
            },
            {
              "name": "ExpirationDate",
              "type": "string",
              "required": true,
              "description": "过期时间",
              "example": "1"
            },
            {
              "name": "ClaimJson",
              "type": "string",
              "required": true,
              "description": "声明",
              "example": "1"
            },
            {
              "name": "Type",
              "type": "array",
              "required": false,
              "description": "凭证类型",
              "example": "[\"TempCredential\"]",
              "item_type": "string"
            },
            {
              "name": "Parties",
              "type": "array",
              "required": false,
              "description": "多方签名的用户did",
              "example": "[\"did:tdid:f34:0x996d0259c4c09359b8ef0fb1b530a2aa702cf092\",\"did:tdid:c97:0xc1f030ceeb858887f0cc400030d59534cf8098c8\"]",
              "item_type": "string"
            }
          ]
        },
        {
          "name": "UnSigned",
          "type": "boolean",
          "required": false,
          "description": "是否未签名",
          "example": "true"
        },
        {
          "name": "DAPId",
          "type": "integer",
          "required": false,
          "description": "DID应用id",
          "example": "1"
        }
      ],
      "required": []
    },
    {
      "name": "QueryAuthorityInfo",
      "description": "查询权威机构信息",
      "status": "online",
      "parameters": [
        {
          "name": "Did",
          "type": "string",
          "required": false,
          "description": "DID标识",
          "example": "did:tdid:w1:0xa75368ab6ab9cb6d01e81d22155279ee4eca3f4d"
        },
        {
          "name": "DAPId",
          "type": "integer",
          "required": false,
          "description": "DID应用id",
          "example": "1"
        },
        {
          "name": "Name",
          "type": "string",
          "required": false,
          "description": "权威机构名称",
          "example": "某教育学院"
        }
      ],
      "required": []
    },
    {
      "name": "QueryCPT",
      "description": "查询凭证模板内容",
      "status": "online",
      "parameters": [
        {
          "name": "DAPId",
          "type": "integer",
          "required": false,
          "description": "DID应用id",
          "example": "1"
        },
        {
          "name": "CPTId",
          "type": "integer",
          "required": false,
          "description": "凭证模板id",
          "example": "1000"
        }
      ],
      "required": []
    },
    {
      "name": "SetTDidAttribute",
      "description": "设置DID文档的自定义属性",
      "status": "online",
      "parameters": [
        {
          "name": "Did",
          "type": "string",
          "required": false,
          "description": "DID标识符",
          "example": "did:tdid:w1:0x0d342759f20005df531c50f671d414661e381c01"
        },
        {
          "name": "Attributes",
          "type": "array",
          "required": false,
          "description": "属性名值对数组",
          "example": "[{\"Key\":\"test\",\"Val\":\"test\"}]",
          "item_type": "object",
          "children": [
            {
              "name": "Key",
              "type": "string",
              "required": true,
              "description": "键名",
              "example": "name"
            },
            {
              "name": "Val",
              "type": "string",
              "required": true,
              "description": "键值",
              "example": "李四"
            }
          ]
        },
        {
          "name": "DAPId",
          "type": "integer",
          "required": false,
          "description": "DID应用Id",
          "example": "5"
        },
        {
          "name": "OperateCredential",
          "type": "string",
          "required": false,
          "description": "操作鉴权凭证",
          "example": "{\\n\\t\\\"cptId\\\": 1,\\n\\t\\\"issuer\\\": \\\"did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb\\\",\\n\\t\\\"expirationDate\\\": \\\"2023-12-01T10:00:00+08:00\\\",\\n\\t\\\"issuanceDate\\\": \\\"2023-09-19T20:13:36+08:00\\\",\\n\\t\\\"context\\\": \\\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\\\",\\n\\t\\\"id\\\": \\\"fw1652844bee8e5ecf1b404242b83f1b\\\",\\n\\t\\\"type\\\": [\\\"VerifiableCredential\\\"],\\n\\t\\\"credentialSubject\\\": {\\n\\t\\t\\\"CredentialStatus\\\": {\\n\\t\\t\\t\\\"id\\\": \\\"8818fdd61eb84e4a745a3b04c96e5237\\\",\\n\\t\\t\\t\\\"issuer\\\": \\\"did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb\\\",\\n\\t\\t\\t\\\"status\\\": 1\\n\\t\\t},\\n\\t\\t\\\"action\\\": \\\"updateCredentialState\\\",\\n\\t\\t\\\"orignCredential\\\": \\\"{\\\\\\\"cptId\\\\\\\":1,\\\\\\\"issuer\\\\\\\":\\\\\\\"did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb\\\\\\\",\\\\\\\"expirationDate\\\\\\\":\\\\\\\"2023-12-01T10:00:00+08:00\\\\\\\",\\\\\\\"issuanceDate\\\\\\\":\\\\\\\"2023-09-19T20:04:20+08:00\\\\\\\",\\\\\\\"context\\\\\\\":\\\\\\\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\\\\\\\",\\\\\\\"id\\\\\\\":\\\\\\\"8818fdd61eb84e4a745a3b04c96e5237\\\\\\\",\\\\\\\"type\\\\\\\":[\\\\\\\"VerifiableCredential\\\\\\\"],\\\\\\\"credentialSubject\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"updateCredentialState\\\\\\\"},\\\\\\\"proof\\\\\\\":{\\\\\\\"created\\\\\\\":\\\\\\\"2023-09-19T20:04:20+08:00\\\\\\\",\\\\\\\"creator\\\\\\\":\\\\\\\"did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb#keys-0\\\\\\\",\\\\\\\"signatureValue\\\\\\\":\\\\\\\"MEUCIQDUneIwlLbh5AFjQt9HJhIZAQshT45/Em8hVOUjHcdu0QIgL3rg3A99qGGNszstF+GTV5IU4vT9OnI1lqM3f0w1JmI=\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"Secp256r1\\\\\\\",\\\\\\\"metaDigest\\\\\\\":\\\\\\\"6a216f84cb9w1b6170cb017cccd6w1d0b81aad200d5691914d6045471d0dd1ad\\\\\\\",\\\\\\\"vcDigest\\\\\\\":\\\\\\\"c7e13w1bcfa879c922f9141d085facc0ce1973e8d27d48238130739c1a332dcf\\\\\\\",\\\\\\\"privacy\\\\\\\":\\\\\\\"Public\\\\\\\",\\\\\\\"salt\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"HZdDU\\\\\\\"}}}\\\"\\n\\t},\\n\\t\\\"proof\\\": {\\n\\t\\t\\\"created\\\": \\\"2023-09-19T20:13:36+08:00\\\",\\n\\t\\t\\\"creator\\\": \\\"did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb#keys-0\\\",\\n\\t\\t\\\"signatureValue\\\": \\\"MEUCIDkLg6EqmwvEHYLtjumpeqKz/hIi6EROMDXPPpNIxORHAiEA8T0LMI59tkBTz+llu/GkjToj5M8k5SwXFoU3fnjQ3mo=\\\",\\n\\t\\t\\\"type\\\": \\\"Secp256r1\\\",\\n\\t\\t\\\"metaDigest\\\": \\\"46894b7f54365d685ba587608d2b74f800404ebb76f5c32dd90bc3916e844ae2\\\",\\n\\t\\t\\\"vcDigest\\\": \\\"d086ba831ab3185971c168w125bf2bd487d7eced3ede8d623b30cfe9da03bcaf\\\",\\n\\t\\t\\\"privacy\\\": \\\"Public\\\",\\n\\t\\t\\\"salt\\\": {\\n\\t\\t\\t\\\"CredentialStatus\\\": {\\n\\t\\t\\t\\t\\\"id\\\": \\\"4dPOH\\\",\\n\\t\\t\\t\\t\\\"issuer\\\": \\\"OJH5M\\\",\\n\\t\\t\\t\\t\\\"status\\\": \\\"lm2W4\\\"\\n\\t\\t\\t},\\n\\t\\t\\t\\\"action\\\": \\\"r95wA\\\",\\n\\t\\t\\t\\\"orignCredential\\\": \\\"b3H4j\\\"\\n\\t\\t}\\n\\t}\\n}"
        }
      ],
      "required": []
    },
    {
      "name": "UpdateCredentialState",
      "description": "1. 首次更新凭证状态基于不同场景参数有所差异，分以下两种场景： (1) 颁发凭证的DID是本腾讯云账号创建 (2) 颁发凭证的DID是非本腾讯云账号创建(此调用方式也适用于场景1) 2. 首次更新过凭证状态后，凭证状态已绑定该账号的链上用户，后续更新凭证状态只需参数CredentialStatus即可, OperateCredential和OriginCredential参数均不需要",
      "status": "online",
      "parameters": [
        {
          "name": "DAPId",
          "type": "integer",
          "required": false,
          "description": "DID应用Id",
          "example": "1"
        },
        {
          "name": "OperateCredential",
          "type": "string",
          "required": false,
          "description": "更新VC状态的临时凭证内容，通过创建凭证接口(CreateCredential)生成并签名，凭证类型为：OperateCredential, 为安全起见凭证过期时间不适合太长，如设置为1分钟内",
          "example": "{\"cpt\":1}"
        },
        {
          "name": "OriginCredential",
          "type": "string",
          "required": false,
          "description": "待更新凭证状态的原始凭证内容",
          "example": "{\"cpt\":1}"
        },
        {
          "name": "CredentialStatus",
          "type": "object",
          "required": false,
          "description": "凭证状态信息",
          "example": "无",
          "children": [
            {
              "name": "Id",
              "type": "string",
              "required": false,
              "description": "凭证唯一id",
              "example": "8818fdd61eb84e4a745a3b04c96e5237"
            },
            {
              "name": "Issuer",
              "type": "string",
              "required": false,
              "description": "凭证状态（0：吊销；1：有效）",
              "example": "1"
            },
            {
              "name": "Status",
              "type": "integer",
              "required": false,
              "description": "凭证颁发者Did",
              "example": "did:tdid:w1:0x833e89118443c623a8ab063d9ef08268268fe3a4"
            }
          ]
        }
      ],
      "required": []
    },
    {
      "name": "VerifyCredentials",
      "description": "验证已签名的可验证凭证",
      "status": "online",
      "parameters": [
        {
          "name": "VerifyType",
          "type": "integer",
          "required": false,
          "description": "0:仅验证签名，1:验证签名和链上状态，2, 仅验证链上状态，默认为0, 3.验证DID和凭证状态以及签名，4. 验证历史凭证有效性",
          "example": "1"
        },
        {
          "name": "CredentialData",
          "type": "string",
          "required": false,
          "description": "凭证内容",
          "example": "{\"cptId\":1,\"issuer\":\"did:tdid:c11:0xe4e076689b11dcaa1118aef654791cca95c76827\",\"expirationDate\":\"2124-06-29T15:25:00+08:00\",\"issuanceDate\":\"2024-12-18T10:51:47+08:00\",\"context\":\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\",\"id\":\"6aeea943a851ad83acae1e138c2edc67\",\"type\":[\"VerifiableCredential\"],\"credentialSubject\":{\"action\":\"setAge\",\"age\":17},\"proof\":{\"created\":\"2024-12-18T10:51:47+08:00\",\"creator\":\"did:tdid:c11:0xe4e076689b11dcaa1118aef654791cca95c76827#keys-0\",\"signatureValue\":\"MEQCIHETsDrIpka838y4NHWU2S07+YwPRb3Mpwq8W5TLDNsNAiBUBFP0mb+eNpc5cTla15MxtIWGk0u8AAiTAHLjYbS2Mg==\",\"type\":\"Secp256r1\",\"metaDigest\":\"79ccefe237c9bf65d804747ca7f20ff9b985242e4e1e8634587bbebe07b51c45\",\"vcDigest\":\"b8e185fdd623d09434460ceaae6dd5563411ed9d8c7ded144248813ba0b4bcfc\",\"privacy\":\"Public\",\"salt\":{\"action\":\"XG9VA\",\"age\":\"yol5B\"}}}"
        },
        {
          "name": "DAPId",
          "type": "integer",
          "required": false,
          "description": "DID应用id",
          "example": "1"
        }
      ],
      "required": []
    },
    {
      "name": "VerifyPresentation",
      "description": "验证可验证表达的内容",
      "status": "online",
      "parameters": [
        {
          "name": "Did",
          "type": "string",
          "required": false,
          "description": "VP持有人的did标识",
          "example": "did:tdid:c780:0x5ce9f61416c174809f4dfd34d930b5c68fdaac30"
        },
        {
          "name": "PresentationData",
          "type": "string",
          "required": false,
          "description": "可验证表达内容",
          "example": "{\"context\":[\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\"],\"holder\":\"did:tdid:c11:0xe4e076689b11dcaa1118aef654791cca95c76827\",\"proof\":{\"created\":\"2024-12-18T11:12:22+08:00\",\"nonce\":\"RIflyg\",\"signatureValue\":\"eyJjb250ZXh0IjpbImh0dHBzOi8vZ2l0aHViLmNvbS9UZW5jZW50Q2xvdWQtQmxvY2tjaGFpbi9URElEL2Jsb2IvbWFpbi9jb250ZXh0L3YxIl0sImhvbGRlciI6ImRpZDp0ZGlkOmMxMToweGU0ZTA3NjY4OWIxMWRjYWExMTE4YWVmNjU0NzkxY2NhOTVjNzY4MjciLCJ0eXBlIjpbIlZlcmlmaWFibGVQcmVzZW50YXRpb24iXSwidmVyaWZpYWJsZUNyZWRlbnRpYWwiOlt7ImNvbnRleHQiOiJodHRwczovL2dpdGh1Yi5jb20vVGVuY2VudENsb3VkLUJsb2NrY2hhaW4vVERJRC9ibG9iL21haW4vY29udGV4dC92MSIsImNwdElkIjoxLCJjcmVkZW50aWFsU3ViamVjdCI6eyJhY3Rpb24iOiJzZXRBZ2UiLCJhZ2UiOiIweDdhNWIwZjM4MTNjMmJjZDRhMGIzZTJjNTM0YWFmZGI0Y2YwMzM3YWYxYWQyYmMzMDhiZDExYzZhZGVkOTFhM2MifSwiZXhwaXJhdGlvbkRhdGUiOiIyMTI0LTA2LTI5VDE1OjI1OjAwKzA4OjAwIiwiaWQiOiI2YWVlYTk0M2E4NTFhZDgzYWNhZTFlMTM4YzJlZGM2NyIsImlzc3VhbmNlRGF0ZSI6IjIwMjQtMTItMThUMTA6NTE6NDcrMDg6MDAiLCJpc3N1ZXIiOiJkaWQ6dGRpZDpjMTE6MHhlNGUwNzY2ODliMTFkY2FhMTExOGFlZjY1NDc5MWNjYTk1Yzc2ODI3IiwicHJvb2YiOnsiY3JlYXRlZCI6IjIwMjQtMTItMThUMTA6NTE6NDcrMDg6MDAiLCJjcmVhdG9yIjoiZGlkOnRkaWQ6YzExOjB4ZTRlMDc2Njg5YjExZGNhYTExMThhZWY2NTQ3OTFjY2E5NWM3NjgyNyNrZXlzLTAiLCJtZXRhRGlnZXN0IjoiNzljY2VmZTIzN2M5YmY2NWQ4MDQ3NDdjYTdmMjBmZjliOTg1MjQyZTRlMWU4NjM0NTg3YmJlYmUwN2I1MWM0NSIsInByaXZhY3kiOiJQdWJsaWMiLCJzYWx0Ijp7ImFjdGlvbiI6IlhHOVZBIiwiYWdlIjoiMCJ9LCJzaWduYXR1cmVWYWx1ZSI6Ik1FUUNJSEVUc0RySXBrYTgzOHk0TkhXVTJTMDcrWXdQUmIzTXB3cThXNVRMRE5zTkFpQlVCRlAwbWIrZU5wYzVjVGxhMTVNeHRJV0drMHU4QUFpVEFITGpZYlMyTWc9PSIsInR5cGUiOiJTZWNwMjU2cjEiLCJ2Y0RpZ2VzdCI6ImI4ZTE4NWZkZDYyM2QwOTQzNDQ2MGNlYWFlNmRkNTU2MzQxMWVkOWQ4YzdkZWQxNDQyNDg4MTNiYTBiNGJjZmMifSwidHlwZSI6WyJWZXJpZmlhYmxlQ3JlZGVudGlhbCJdfV0sInplcm9Qcm9vZiI6W1tdXX0=\",\"type\":\"Secp256r1\",\"verificationMethod\":\"did:tdid:c11:0xe4e076689b11dcaa1118aef654791cca95c76827#keys-0\",\"vpDigest\":\"61975d8175b3cf3f7f9f316350d94bcd2e980eb7b2e66ddecc170ab43bbb5183\"},\"type\":[\"VerifiablePresentation\"],\"verifiableCredential\":[{\"context\":\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\",\"cptId\":1,\"credentialSubject\":{\"action\":\"setAge\",\"age\":\"0x7a5b0f3813c2bcd4a0b3e2c534aafdb4cf0337af1ad2bc308bd11c6aded91a3c\"},\"expirationDate\":\"2124-06-29T15:25:00+08:00\",\"id\":\"6aeea943a851ad83acae1e138c2edc67\",\"issuanceDate\":\"2024-12-18T10:51:47+08:00\",\"issuer\":\"did:tdid:c11:0xe4e076689b11dcaa1118aef654791cca95c76827\",\"proof\":{\"created\":\"2024-12-18T10:51:47+08:00\",\"creator\":\"did:tdid:c11:0xe4e076689b11dcaa1118aef654791cca95c76827#keys-0\",\"metaDigest\":\"79ccefe237c9bf65d804747ca7f20ff9b985242e4e1e8634587bbebe07b51c45\",\"privacy\":\"Public\",\"salt\":{\"action\":\"XG9VA\",\"age\":\"0\"},\"signatureValue\":\"MEQCIHETsDrIpka838y4NHWU2S07+YwPRb3Mpwq8W5TLDNsNAiBUBFP0mb+eNpc5cTla15MxtIWGk0u8AAiTAHLjYbS2Mg==\",\"type\":\"Secp256r1\",\"vcDigest\":\"b8e185fdd623d09434460ceaae6dd5563411ed9d8c7ded144248813ba0b4bcfc\"},\"type\":[\"VerifiableCredential\"]}],\"zeroProof\":[[]]}"
        },
        {
          "name": "DAPId",
          "type": "integer",
          "required": false,
          "description": "DID应用id",
          "example": "1"
        },
        {
          "name": "VerifyCode",
          "type": "string",
          "required": false,
          "description": "随机验证码",
          "example": "007"
        }
      ],
      "required": []
    }
  ]
}