Update Credentials
The credentials stored on the SDK can be updated using the credential's ID.
The updateClaim() method uses claimId, issuer, genesisDid, state, expiration, type, data, and privateKey as input parameters and updates the credential information.
Future<ClaimEntity> updateClaim({
required String claimId,
String? issuer,
required String genesisDid,
ClaimState? state,
String? expiration,
String? type,
Map<String, dynamic>? data,
required String privateKey,
});
where:
claimIdis the credential's ID.issueris thedidof the issuer.genesisDidis the unique ID of the identity.stateis the credential's current state.expirationis the date and time of the expiration of the credential in string format.typeis the type of verifiable credential, for example: KYCAgeCredential.datais the information related to a verifiable credential.privateKeyof the identity is a key that is used to access the sensitive information of the identity. This key is also used for generating proofs by using the credentials associated with the identity.
This function returns the updated ClaimEntity.
note
Only the ClaimEntity.info is updated and data is subject to validation by the data layer. ClaimEntity.info is the information related to a verifiable credential that an Integrator receives from an Issuer.