w3c-ccg / data-integrity-test-suite-assertion

Library for Data Integrity related test suites
2 stars 2 forks source link

Real verifier test for tests #103

Closed aljones15 closed 3 months ago

aljones15 commented 3 months ago

Addresses issue: https://github.com/w3c-ccg/data-integrity-test-suite-assertion/issues/36

Adds a more real verifier than previously (one that at least actually verifies the VCs instead of just returning 400)

A number of issues arose from this PR so this PR fixes a few things:

  1. a real verifier (@digitalbazaar/vc) is used
  2. this library now exports a createDocLoader method that can be used by other suites
  3. this PR fixes expectedProofPurpose test
  4. fixes test data so that the Vc 2.0 context is not mutated by other files that require that context

NOTE: timestamp related tests are failing because DB's DataIntegrityProof does not have correct time stamp support yet.