Universal Resolver has no way to provide Resolution Options
Per the DID Resolver spec, the resolver should take in a DID and a set of resolutionOptions. I couldnt see a way to provide these options currently to the universal resolver.
I was just playing around with did:key and wondering why some resolver to JsonWebKey and others to keys like Ed25519VerificationKey. How is the universal resolver deciding what format to represent the keys?
I was just playing around with did:key and wondering why some resolver to JsonWebKey and others to keys like Ed25519VerificationKey. How is the universal resolver deciding what format to represent the keys?
This is because in the current configuration, two different drivers are being used for did:key, see here:
- https://github.com/decentralized-identity/universal-resolver/blob/main/uni-resolver-web/src/main/resources/application.yml#L193
- https://github.com/decentralized-identity/universal-resolver/blob/main/uni-resolver-web/src/main/resources/application.yml#L201
Apparently these drivers use Ed25519VerificationKey and JsonWebKey, depending on key type.
Standardizing the did:key method should hopefully harmonize this :)