StatusList2021Credential constructor
StatusList2021Credential({})
Implementation
StatusList2021Credential(
{String? subjectId,
required BitString revocationList,
required this.statusPurpose,
required super.id,
required super.issuanceDate,
super.issuer,
required super.expirationDate})
: super(
subjectId: subjectId,
revocationList: revocationList) {
type = ["VerifiableCredential", "StatusList2021Credential"];
context = [credentialsV1Iri, statusList2021ContextIri];
credentialSubject = {
'type': 'StatusList2021',
'statusPurpose': statusPurpose.value,
'encodedList': revocationList.toEncodedString()
};
if (subjectId != null) {
credentialSubject['id'] = subjectId;
}
}