Skip to content

Commit

Permalink
Fix BitstringStatusList support.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlongley committed Feb 24, 2024
1 parent 18c5112 commit a763c76
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/issue.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export async function issue({config, credential, updateValidity = true} = {}) {
credential.expirationDate = validUntil;
} else {
credential.validFrom = validFrom;
credential.validFrom = validFrom;
credential.validUntil = validUntil;
}

// delete existing proof
Expand Down
4 changes: 2 additions & 2 deletions lib/slcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ export async function getFresh({config, statusListId} = {}) {
return {credential: record.credential};
}
// refresh SLC
const doc = await refresh({config, statusListId});
return {credential: doc.content};
const {credential} = await refresh({config, statusListId});
return {credential};
}

/**
Expand Down
4 changes: 1 addition & 3 deletions test/mocha/20-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ describe('status APIs', () => {
`urn:zcap:root:${encodeURIComponent(statusInstanceId)}`;
});
describe('/status-lists', () => {
// FIXME: enable `BitstringStatusList` tests once br-vc-status-list is
// updated and imported by bedrock-vc-issuer
it.only('creates a "StatusList2021" status list', async () => {
it('creates a "StatusList2021" status list', async () => {
const statusListId = `${statusInstanceId}/status-lists/${uuid()}`;
const statusListOptions = {
credentialId: statusListId,
Expand Down
2 changes: 1 addition & 1 deletion test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"@bedrock/app-identity": "^4.0.0",
"@bedrock/core": "^6.0.1",
"@bedrock/credentials-context": "^4.0.0",
"@bedrock/credentials-context": "digitalbazaar/bedrock-credentials-context#update-vc-2.0",
"@bedrock/data-integrity-context": "^3.0.0",
"@bedrock/did-context": "^5.0.0",
"@bedrock/did-io": "^10.1.0",
Expand Down

0 comments on commit a763c76

Please sign in to comment.