11.2.3.2 Verify Credential


Interface Address /did/verifyCredential
Description Generally called by the verifier. It can verify whether a particular credential is valid or not. Verify the signature of the credential, whether the credential is expired, and whether the credential is revoked, respectively.
Interface request parameter
No. Parameter Type Required Description
1 VerifyCredentialReq Y Wrapper class
VerifyCredentialReq
1 credentialWrapper CredentialWrapper Y Credential information
2 publicKey PublicKey Y Issuer’s public key
CredentialWrapper
1 context String Y Specification
2 id String Y Credential ID
3 type String Y Credential type, fill in Proof
4 cptId Long Y Credential template ID
5 issuerDid String Y DID of credential issuer
6 userDid String Y DID of the user requesting the credentials
7 expirationDate String Y Expiration date
8 created String Y Created date
9 shortDesc String N Brief description of the credential
10 longDesc String N Detailed description of the credential
11 claim Map<String, Object> Y Claim data
12 proof Map<String, Object> Y Signature
PublicKey
1 publicKey String Y Public key
2 type String Y Algorithm type
Interface response parameter
No. Parameter Type Description
1 Boolean Return true if success, return false if failed
© 2019-2023 Red Date (Hong Kong) Technology Limited. all right reserved,powered by GitbookFile Modify: 2023-02-16 12:22:03

results matching ""

    No results matching ""

    results matching ""

      No results matching ""