decentralized-identity / universal-resolver

Universal Resolver implementation and drivers.
https://uniresolver.io/
Apache License 2.0
529 stars 233 forks source link

Initial commit for a did:peer driver #359

Closed FabioPinheiro closed 4 months ago

FabioPinheiro commented 1 year ago

I was going to implement a docker image to resolve the peer did offline. But that would take more than a few hours, and I have some questions if the output is correct.

So I propose to merge this temporary driver for did:peer in the meantime.

Example https://did.fmgp.app/resolver/peer/did:peer:2.Ez6LSghwSE437wnDE1pt3X6hVDUQzSjsHzinpX3XFvMjRAm7y.Vz6Mkhh1e5CEYYq6JBUcTZ6Cp2ranCWRrv7Yax3Le4N59R6dd.SeyJ0IjoiZG0iLCJzIjoiaHR0cHM6Ly9hbGljZS5kaWQuZm1ncC5hcHAvIiwiciI6W10sImEiOlsiZGlkY29tbS92MiJdfQ

peacekeeper commented 1 year ago

Hello @FabioPinheiro thanks, I think a did:peer driver would be really interesting.

Could you tell us a bit more about did.fmgp.app? Is this something like a DIDComm agent where other agents connect, and then it can resolve did:peer identifiers for those connections?

Could this also be added as a local driver (Docker container) to the Universal Resolver, instead of calling the remote service?

Would you perhaps be available to discuss this on one of the next DIF ID WG calls? I think this topic would be really interesting to the group: https://github.com/decentralized-identity/identifiers-discovery/blob/main/agenda.md

FabioPinheiro commented 1 year ago

did.fmgp.app is just a playground that I build with a scala implementation of DidComm v2.

yes there are some agents running on there also. There are able to respond to trust pings and basic messages. Can also visualize all the messages received by one agent https://did.fmgp.app/#/stream (just look into the dev console -> network -> ws). Almost all the agents there have known private keys, which I really miss from other places when I was trying to test interoperability.

The limitation of this implementation of did:peer are:

Could this also be added as a local driver (Docker container) to the Universal Resolver, instead of calling the remote service?

That was the initial plan. In reality, almost all the code is on https://github.com/FabioPinheiro/scala-did/blob/master/demo/jvm/src/main/scala/fmgp/did/resolver/DidPeerUniresolverDriver.scala

Would you perhaps be available to discuss this on one of the next DIF ID WG calls?

I can try. I'm not sure because I will be traveling between the 13th and the end of the month

kimdhamilton commented 4 months ago

What's the status of this PR? Can we close it since the branch seems to be merged?

FabioPinheiro commented 4 months ago

@kimdhamilton I think so. Another solution was done to resolve did:peer