Closed domwoe closed 2 years ago
The resolver should be able to not only return the actual DID Document or Ledger Object, but also metadata.
We need to define what metadata would be useful for a consumer and provide an option to resolve with metadata.
For example, the did:sov universal resolver driver provides the following metadata:
did:sov
Map<String, Object> didDocumentMetadata = new LinkedHashMap<> (); didDocumentMetadata.put("network", indyConnection.getPoolConfigName()); didDocumentMetadata.put("poolVersion", indyConnection.getPoolVersion()); didDocumentMetadata.put("submitterDid", indyConnection.getSubmitterDid()); didDocumentMetadata.put("nymResponse", gson.fromJson(jsonGetNymResponse, Map.class)); didDocumentMetadata.put("attrResponse", gson.fromJson(jsonGetAttrResponse, Map.class));
Source
There's also a section in the DID core spec about recommended properties: https://www.w3.org/TR/did-core/#did-document-metadata
This should be addressed in the Indy DID Method Spec first.
We should include metadata from the Indy-VDR RequestResult data
RequestResult
The resolver should be able to not only return the actual DID Document or Ledger Object, but also metadata.
We need to define what metadata would be useful for a consumer and provide an option to resolve with metadata.
For example, the
did:sov
universal resolver driver provides the following metadata:Source
There's also a section in the DID core spec about recommended properties: https://www.w3.org/TR/did-core/#did-document-metadata