14.2.3.2 验证凭证

接口地址 /did/verifyCredential
接口描述 一般由验证方调用,可验证某个凭证是否有效。分别验证凭证的签名、凭证是否过期、凭证是否吊销。
接口请求参数
序号 参数 类型 必传 参数含义
1 VerifyCredentialReq 是 包装类
VerifyCredentialReq
1 credentialWrapper CredentialWrapper 是 凭证信息
2 publicKey PublicKey 是 发证方的公钥
CredentialWrapper
1 context String 是 遵循规范
2 id String 是 凭证ID
3 type String 是 凭证类型,填写Proof
4 cptId Long 是 凭证模板ID
5 issuerDid String 是 凭证发证方DID标识符
6 userDid String 是 申请凭证用户的DID标识符
7 expirationDate String 是 到期时间
8 created String 是 创建时间
9 shortDesc String 否 凭证简要描述
10 longDesc String 否 凭证详细描述
11 claim Map<String,Object> 是 申明的数据
12 proof Map<String,Object> 是 签名数据
PublicKey
1 publicKey String 是 公钥信息
2 type String 是 算法类型
接口响应参数
序号 参数 类型 参数含义
1 Boolean 验证成功返回true,失败返回false
Copyright 北京红枣科技有限公司

results matching ""

    No results matching ""

    results matching ""

      No results matching ""