Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DID Content References] "!" notation is problematic for a DID Resolver #167

Open
mwherman2000 opened this issue Mar 15, 2019 · 4 comments

Comments

@mwherman2000
Copy link

mwherman2000 commented Mar 15, 2019

Consider the following single "Hashlink" example from the paper https://github.com/WebOfTrustInfo/rwot8-barcelona/blob/master/topics-and-advance-readings/DID-Content-References.md ...

did:sov:21tDAKCERh95uGgKbJNHYp!hl:zQmWvQxTqbG2Z9HPJgG57jjwR154cKhbtJenbyYTWkjgF3e

  1. How is a DID Resolver for the "did:sov:" DID method supposed to know what type of JSON document to return for the identifier 21tDAKCERh95uGgKbJNHYp (within the "did:sov:` DID method context)?

Clearly the data for the object as serialized and stored on the ledger will know its object type (via some sort of type or subtype attribute) ...i.e. whether the corresponding object is a DID Document, a Hashlink object, etc.

  1. What if 21tDAKCERh95uGgKbJNHYp is the id for a DID Document and the Resolver is asked to apply the "!" operator to a DID Document instead of an intended Hashlink object? Does the Resolver return some sort of "type mismatch" error diagnostic to the caller?

CC: @talltree @peacekeeper

@mwherman2000
Copy link
Author

mwherman2000 commented Mar 15, 2019

In this scenario (same Hashlink example from the paper):

did:sov:21tDAKCERh95uGgKbJNHYp!hl:zQmWvQxTqbG2Z9HPJgG57jjwR154cKhbtJenbyYTWkjgF3e

I propose the following semantics (although at an implementation level, there may be optimizations):

  • that the DID Resolver simply fetch the object that matches did:sov:21tDAKCERh95uGgKbJNHYp on the ledger (if it exists); then the dereferencing operation can be applied (if it is applicable for the type of the fetched object).

@andrewhughes3000
Copy link
Contributor

andrewhughes3000 commented Mar 15, 2019 via email

@mwherman2000
Copy link
Author

I appreciate your comments @andrewhughes3000, I've been simply posting comments in the issues log of the repository where the subject documents are stored ...conventional github operating procedure.

Where do you propose that discussions specific to specific RWOT documents take place?

@andrewhughes3000
Copy link
Contributor

andrewhughes3000 commented Mar 15, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants