Get Credential by ID
The SDK provides the capability to retrieve a specific credential by its ID through the getCredentialById() method.
Future<ClaimEntity> getCredentialById({
required String credentialId,
required String genesisDid,
required String privateKey,
});
where:
credentialIdis the unique identifier of the credential to be retrieved.genesisDidis the unique ID of the identity.privateKeyis the key used to access all the sensitive information from the identity and also to realize operations like generating proofs.
note
This method is essential for retrieving credentials based on their unique identifiers, allowing for specific operations on individual credentials within the SDK.