@@ -21,12 +21,14 @@ export enum DescriptorItemFormat {
21
21
}
22
22
23
23
export enum W3CVerifiableCredentialContext {
24
- credential = "https://www.w3.org/2018/credentials/v1"
24
+ credential = "https://www.w3.org/2018/credentials/v1" ,
25
+ revocation = "https://w3id.org/vc/status-list/2021/v1"
25
26
}
26
27
27
28
export enum W3CVerifiableCredentialType {
28
29
presentation = "VerifiablePresentation" ,
29
- credential = "VerifiableCredential"
30
+ credential = "VerifiableCredential" ,
31
+ revocation = "StatusList2021Credential"
30
32
}
31
33
32
34
export enum SDJWTVerifiableCredentialProperties {
@@ -259,9 +261,73 @@ export type W3CVerifiableCredential = {
259
261
id : string ,
260
262
type : string
261
263
} ,
262
- credentialStatus ?: {
264
+ credentialStatus ?: JWTRevocationStatus | unknown
265
+ }
266
+
267
+ export interface W3CVerifiableCredentialData {
268
+ id : string ,
269
+ type : string
270
+ }
271
+
272
+
273
+ export enum JWTRevocationStatusPurpose {
274
+ Revocation = "Revocation" ,
275
+ Suspension = 'Suspension'
276
+ }
277
+
278
+ export enum CredentialStatusType {
279
+ StatusList2021Entry = 'StatusList2021Entry'
280
+ }
281
+
282
+
283
+ export enum RevocationType {
284
+ StatusList2021 = 'StatusList2021'
285
+ }
286
+
287
+ export interface JWTRevocationStatus extends W3CVerifiableCredentialData {
288
+ statusPurpose : JWTRevocationStatusPurpose ,
289
+ statusListIndex : number ,
290
+ id : string ,
291
+ type : RevocationType ,
292
+ statusListCredential : string
293
+ }
294
+
295
+ export enum JWTProofType {
296
+ EcdsaSecp256k1Signature2019 = "EcdsaSecp256k1Signature2019" ,
297
+ DataIntegrityProof = "DataIntegrityProof" ,
298
+ Unknown = "Unknown"
299
+ }
300
+
301
+ export enum JWTProofPurpose {
302
+ ProofPurpose = 'assertionMethod'
303
+ }
304
+
305
+ export interface JWTStatusListResponse {
306
+ "@context" : [
307
+ W3CVerifiableCredentialContext . credential ,
308
+ W3CVerifiableCredentialContext . revocation
309
+ ] ,
310
+ type : [
311
+ W3CVerifiableCredentialType . credential ,
312
+ W3CVerifiableCredentialType . revocation
313
+ ] ,
314
+ issuer : string ,
315
+ id : string ,
316
+ issuanceDate : string ,
317
+ credentialSubject : {
263
318
id : string ,
264
- type : string
319
+ type : string ,
320
+ statusPurpose : string ,
321
+ encodedList : string
322
+ } ,
323
+ proof : {
324
+ type : JWTProofType ,
325
+ jws : string ,
326
+ proofPurpose : JWTProofPurpose ,
327
+ verificationMethod : string ,
328
+ created : string ,
329
+ proofValue : string ,
330
+ cryptoSuite : string
265
331
}
266
332
}
267
333
0 commit comments