w3c / did-core

W3C Decentralized Identifier Specification v1.0
https://www.w3.org/TR/did-core/
Other
407 stars 96 forks source link

Make DID Resolution section concrete and testable (abstract + Typescript). #592

Closed msporny closed 3 years ago

msporny commented 3 years ago

This PR is intended to address issue #549 by adding to the abstract functions discussed in the DID Resolution and DID URL Dereferencing sections and describing potentially conforming expressions in Typescript as concrete, testable functions. The PR uses an Typescript interface to provide an example while keeping all of what we had before. It also tries to strike a balance by providing at least one concrete realization of the interface without preventing other concrete interfaces from being realized.

There are a LOT of reformatting changes in this PR, it might be best to look at the rendered preview for this PR.


Preview | Diff

msporny commented 3 years ago

Taking a new approach for testability in PR #601.

Closing this PR in favor of that one.

TallTed commented 3 years ago

bah. github brought this PR to me as if it hadn't been closed yet. obviously, ignore my last few suggestions here...