Skip to content

Commit 7fa2946

Browse files
committed
ignore 1EdTechRevocationList
1 parent d24271f commit 7fa2946

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

src/credentialStatus.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,19 @@ export function getCredentialStatusChecker(credential: Credential) : (() => bool
1515
credential.credentialStatus :
1616
[credential.credentialStatus];
1717
const [credentialStatus] = credentialStatuses;
18-
if (credentialStatus.type === 'BitstringStatusListEntry') {
19-
statusChecker = checkStatus;
18+
19+
switch (credentialStatus.type) {
20+
case 'BitstringStatusListEntry':
21+
return checkStatus;
22+
case 'StatusList2021Entry':
23+
// old spec - ignore
24+
return ()=>{return true};
25+
case '1EdTechRevocationList':
26+
// old spec - ignore
27+
return ()=>{return true}
28+
default:
29+
return null;
2030
}
21-
return statusChecker;
2231

2332
}
2433

test/Verify.v1.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ describe('Verify', () => {
115115
})
116116

117117
describe('returns as verified', () => {
118-
it.only('when status is valid', async () => {
118+
it('when status is valid', async () => {
119119
const credential : any = getVCv1ValidStatus()
120120
const expectedResult = getExpectedVerifiedResult({credential, withStatus: true})
121121
const result = await verifyCredential({credential, reloadIssuerRegistry: false, knownDIDRegistries})

0 commit comments

Comments
 (0)