TBD54566975 / web5-spec

https://tbd54566975.github.io/sdk-report-runner/
Apache License 2.0
6 stars 5 forks source link

DidResolver and UniversalResolver #137

Open frankhinek opened 3 months ago

frankhinek commented 3 months ago

Context

Currently DID resolution has been implemented as follows across the Web5 SDKs:

Kotlin

JS

Go

Proposed Change

Web5 JS dids package will introduce a DidResolver and DidUrlDereferencer type. The DidResolver type will mirror the type in Kotlin and will only have the resolve function like is the case in Web5 Go. Currently DID URL Dereferencing is only used in the Web5 JS and will remain optional in other SDKs. The current DidResolver in JS that resolves DIDs for multiple methods will be renamed UniversalResolver.