VcInitParam vcInitParam =newVcInitParam(serverInfo, keyManager,"key1", vcRequestJson, issuerDidDocuemntPath,configBean.getVcAssertionId());VcResult vcResult =IssuerApi.vcInit(vcInitParam);if(vcResult.getStatus().equals("0")) {//VC is created but yet has not been registered on the BlockChain(The user MUST pay a token to register)VerifiableClaim vcComplete =vcResult.getVcCompelete();String vcCompleteJson =vcComplete.toJson();resultVc.setClaimBase64(GDPBase64.encodeUrlString(vcCompleteJson.getBytes()));}else{//VC creation completed and registered on the BlockChainVerifiableClaim vcComplete =vcResult.getVcCompelete();String vcCompleteJson =vcComplete.toJson();resultVc.setClaimBase64(GDPBase64.encodeUrlString(vcCompleteJson.getBytes()));}return vcResult;
VC Reg
An API for the VC to register finally on the Blockchain.
VcRegParam Class - Reg Data
ServerInfo - BlockChain Node server information
keyManager - Private key Wallet management
mainKeyId - Stored KeyID in the KeyManager for signing
vcInitResultJson - VC Init result data (Json)
issuerDidFile - File path Issuer DID
txId - Token Transfer TX ID
vcInitResultJson is a JSON string converted data of vcResult received through vcInit.