Skip to content

Convert suites over to local issuers / vc-gen #53

@aljones15

Description

@aljones15

Currently the JCS suite still creates test data by calling on a remote endpoint:

import {issuerNameJCS} from './test-config.js';
const {tags} = config.suites['eddsa-jcs-2022'];
// only use implementations with `eddsa-jcs-2022` verifiers.
const {match: verifierMatches} = endpoints.filterByTag({
tags: [...tags],
property: 'verifiers'
});
describe('eddsa-jcs-2022 (verify)', function() {
let issuedVc;
let credentials;
before(async function() {
const {match: issuerMatches} = endpoints.filterByTag({
tags: [...tags],
property: 'issuers'
});
// FIXME: Currently uses 'bovine' as default issuer to issue a verifiable
// credential for the `eddsa-jcs-2022` verifier tests. This needs to be
// updated in future to use either Digital Bazaar or generate the vc using
// `vc-generator` helper.
const [issuer] = issuerMatches.get(issuerNameJCS).endpoints;

This suite needs to remove all test data creation using endpoints (even outside of the JCS verify suite).

  1. expand the vc-generator to cover all suites involved with the test
  2. use that vc-gen to create both rdfc and jcs test fixtures

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions