did-resolution
did-resolution copied to clipboard
Select top-level properties from Resolver
Did resolvers can return a number of properties in addition to the didDocument. The Universal Resolver hosted by DIF returns e.g.:
- didDocument
- resolverMetadata
- methodMetadata
- content
- contentType
Atm there is no standardized way to selectively include/exclude those top-level properties. Depending on the use case or available resources this could be a useful feature.
It could be implemented by introducing a query parameter e.g.
# include for whitelisting properties
?include=didDocument,resolverMetadata,contentType
# exclude for blacklisting properties
?exclude=didDocument,methodMetadata
The reasoning of making the didDocument also configurable are use cases where the interest are details about e.g. the used resolver or method.