11.4.3 Credential

11.4.3.1 Create Credential


Function name createCredential(CreateCredential createCredential)
Description The attribute values that are required to be filled in by the credential template are docked between the issuer and the DID user. Through this interface, the issuer will complete the issuance of a certain credential.
Method call parameters
No. Parameter Type Required Description
1 CreateCredential Y
CreateCredential
1 cptId Long Y Credential template ID
2 issuerDid String Y DID of the credential template issuer
3 userDid String Y DID of the user who created the credentials
4 expirationDate String Y Credential expiration date
5 claim Map<String, Object> Y Content of the credential
6 type String Y Credential type, input Proof
7 privateKey String Y Private key
Method return parameters
No. Parameter Type Required Description
1 CredentialWrapper Y Creation result, Credential information
CredentialWrapper
No. Parameter Type Required Description
1 context String Y Version
2 id String Y Credential ID
3 type String Y Credential type, Proof
4 cptId Long Y Credential template Id
5 issuerDid String Y DID of the credential template issuer
6 userDid String Y DID of the user who created the credentials
7 expirationDate String Y Credential expiration date
8 created String Y Created date
9 shortDesc String Y Brief description of the credential
10 longDesc String Y Detailed description of the credential
11 claim Map<String, Object> Y Claim data
12 proof Map<String, Object> Y Signature
© 2019-2021 Red Date (Hong Kong) Technology Limited. all right reserved,powered by GitbookFile Modify: 2021-10-31 22:06:27

results matching ""

    No results matching ""

    results matching ""

      No results matching ""