decentralized-identity / decentralized-identity/web5-spec

Test Vectors - Decentralized Identifiers

Open
#167 3 comments 0 reactions 0 assignees View on GitHub
did testing
Dominant language
JavaScript
Stars
8
Forks
6
PR merge metrics
No merged PRs in 30d

Description

This issue outlines gaps in testing of various DID methods and DID capabilities. Tasks may have partial test coverage today (linked if true). If sufficient test coverage already exists, please close the task and link the relevant test.

Tasks may need discussion on the best way to approach them. The goal is to create a set of language agnostic test vectors that give us sufficient confidence in maintaining interoperability of features between implementations.

https://tbd54566975.github.io/web5-spec/#decentralized-identifiers-dids
https://tbd54566975.github.io/web5-spec/#did-document-data-model
https://tbd54566975.github.io/web5-spec/#did-resolution-metadata-data-model
https://tbd54566975.github.io/web5-spec/#did-document-metadata-data-model

## did:jwk

- [ ] did:jwk create and resolve for all supported key types
* (secp256k1, ed25519, secp256r1, and x25519) [today's](https://github.com/TBD54566975/web5-spec/blob/main/test-vectors/did_jwk/resolve.json) [tests](https://github.com/TBD54566975/web5-spec/blob/main/test-vectors/did_jwk/resolve.json)
* access verification method (it exists, it does not exist)
- [ ] did:jwk serialize and deserialize to/from JSON DID Documents to JWKs

## did:web

- [ ] did:web create with all features
* multiple verification methods, verification relationships, services, different key types
- [ ] did:web update
* multiple verification methods, verification relationships, services, different key types
- [ ] did:web resolve via a direct network request [today's tests](https://github.com/TBD54566975/web5-spec/blob/main/test-vectors/did_web/resolve.json)
* valid resolution
* invalid resolution (does not exist, bad certificate)
* access verification methods (it exists, it does not exist)
- [ ] did:web serialize and deserialize to/from JSON DID Documents to JWKs

## did:dht

Can be based off of [the spec test vectors](https://did-dht.com/#test-vectors).

- [ ] did:dht create and publish [today's tests](https://github.com/TBD54566975/web5-spec/blob/main/test-vectors/did_dht/create.json)
* with multiple options: verification methods, relationships, services, types, gateways, etc.
- [ ] did:dht update any/all properties
- [ ] did:dht resolve [today's tests](https://github.com/TBD54566975/web5-spec/blob/main/test-vectors/did_dht/resolve.json)
* local resolution as a fallback
* resolve via a DHT node/gateway
* access verification methods (it exists, it does not exist)

## DID Data Models

- [ ] Support DID resolution with DID resolution metadata and DID document metadata

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.