decentralized-identity/universal-resolver-frontend

Update UX to Support Linking

Closed this issue · 4 comments

OR13 commented

decentralized-identity/universal-resolver#54

It would be nice to be able to easily link to a Resolved DID.

There should be a button with the text "Share" or similar, that copies a url of the form:

https://uniresolver.io/#did:btcr:xxcl-lzpq-q83a-0d5

It should be accent colored to draw attention to it.

There should also be a QR Code which maps to an endpoint which either resolves to https://uniresolver.io/#did:btcr:xxcl-lzpq-q83a-0d5 or the json representation, depending on request headers.

This will allow clients to decide if they want to show the DID or get its data.

hmm was going to close this as #67 appears to do this however the QR code that is displayed right now using my iOS camera app displays "no usable data"

Well the QR code only contains the DID itself, e.g. did:ion:EiClkZMDxPKqC9c-umQfTkR8vvZ9JPhl_xLDI9Nfk38w5w. This was an experimental idea, I imagine that your iOS scanner and most other apps doesn't understand this.

So perhaps it would make more sense to put the same URL into the QR code that you also get from the new "Copy link to result" button, i.e. https://dev.uniresolver.io/#did:ion:EiClkZMDxPKqC9c-umQfTkR8vvZ9JPhl_xLDI9Nfk38w5w?

OR13 commented

I generally tend to encode DIDs as URLs so that any phone that scans them, can open them as a link.

This functionality was added in #65 and in a6da930. Closing.