区块链服务 BCS-根据索引查询可验证凭证:响应参数

时间:2023-11-01 16:25:45

响应参数

状态码: 200

表2 响应Body参数

参数

参数类型

描述

context

String

内容

sequence

String

颁发机构对应凭证的序列号

type

Array of strings

可验证凭证类型

issuer

String

签发者身份标识

issuanceDate

String

签发日期

expirationDate

String

凭证有效期

credentialSubject

CredentialSubject object

凭证主题

revocation

Revocation object

撤销

表3 CredentialSubject

参数

参数类型

描述

owner

String

申请者的身份标识

type

String

凭证类型

schemaID

String

schema ID

dataURI

String

数据URI

encryptedAeskey

String

加密对称密钥

uriType

String

数据索引类型

dataHash

String

数据hash值

表4 Revocation

参数

参数类型

描述

id

String

撤销API或者撤销列表的url

type

String

撤销类型

状态码: 500

表5 响应Body参数

参数

参数类型

描述

errorCode

String

错误码

最小长度:8

最大长度:36

errorMsg

String

错误描述

最小长度:2

最大长度:512

support.huaweicloud.com/devg-bcs/ShowVerifiableCredential.html