Skip to content

w3c-ccg/did-key-test-suite

Repository files navigation

did:key Method Interoperability Test Suite

Table of Contents

Background

Provides interoperability tests for did resolvers that support did:key Method.

Install

$ npm i

Usage

$ npm test

Test Data

Currently our test suite works only with did:keys that are ed25519 compatible. We will expand to support other formats of did:key when those libraries are available.

Implementation

To add your implementation to this test suite see the README here. Add the tag did-key to the did resolvers you want tested. Did Resolvers should be their own property in the JSON manifest:

  "issuers": [{
    // ... issuer settings here
  }],
  "verifiers": [{
    // ... verifier settings here
  }],
  "didResolvers": [{
    "id": "",
    "endpoint": "https://did.resolver.my.app/1.0/resolve/identifiers",
    "tags": ["did-key"]
  }]

To run the tests, some implementations require client secrets that can be passed as env variables to the test script. To see which ones require client secrets, you can check the vc-test-suite-implementations library.

LICENSE

BSD-3-Clause Copyright 2022-2024 Digital Bazaar, Inc.