w3c / vc-di-ecdsa-test-suite

Interoperability Test Suite for Data Integrity Ecdsa Signatures.
https://w3c.github.io/vc-di-ecdsa-test-suite/
BSD 3-Clause "New" or "Revised" License
5 stars 6 forks source link

clean up: consolidate documentLoader and didResolvers #82

Open aljones15 opened 3 months ago

aljones15 commented 3 months ago
  1. the documentLoader should be an async function that accepts a url and returns a document
  2. the existing documentLoader in the tests dir has a parameter {url} that should just be url
  3. the existing documentLoader in the tests dir does not use jsonld-document-loader
  4. the existing documentLoader uses didResolver.js which can be rolled into jsonld-document-loader
  5. increasingly this project has multiple documentLoaders these can be consolidated into a single function that creates a documentLoader, that function should come from data-integrity-test-suite-assertion or vc-test-suite-implementations at some point so other projects can create a documentLoader with support for a particular did:key type.
  6. the documentLoader in tests should be removed or moved somewhere else