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 ""