[x] 2. in the universal-did module, create a DIDResolverImplinternal class with the same functionality as UniversalDID, just not a singleton
[x] 3. create builder pattern for DIDResolver that returns a DIDResolverImpl instance
example usage:
val resolver : DIDResolver = DIDResolver.Builder
.addResolver(ethrDidResolver)
.addResolver(/*...*/)
.build()
[x] 4. remove UniversalDID initialization code from JWTTools constructor.
[x] 5. create a module called uport-defaults
5.1 Create a fun DIDResolver.configureDefaultsWithInfura(infuraProjectId : String) : DIDResolver extension method
5.2 This method should call a DIDResolver.Builder that uses the provided infuraProjectId to configure all the common networks and resolvers in a manner similar to the UniversalDID initialization done in the current JWTTools constructor.
5.3 remove now unused dependencies from the jwt module. It should no longer depend on ethr-did, web-did, uport-did
[ ] 6. Update documentation to reflect new usage patterns
Development checklist
UniversalDID
objectuniversal-did
module, create aDIDResolverImpl
internal class
with the same functionality asUniversalDID
, just not a singletonDIDResolver
that returns aDIDResolverImpl
instance example usage:UniversalDID
initialization code fromJWTTools
constructor.uport-defaults
fun DIDResolver.configureDefaultsWithInfura(infuraProjectId : String) : DIDResolver
extension methodDIDResolver.Builder
that uses the providedinfuraProjectId
to configure all the common networks and resolvers in a manner similar to theUniversalDID
initialization done in the currentJWTTools
constructor.jwt
module. It should no longer depend onethr-did
,web-did
,uport-did