hyperledger-archives / aries-framework-go

Hyperledger Aries Framework Go provides packages for building Agent / DIDComm services.
https://wiki.hyperledger.org/display/ARIES/aries-framework-go
Apache License 2.0
240 stars 158 forks source link

create public DID #2855

Open gouravvemula0 opened 3 years ago

gouravvemula0 commented 3 years ago

how to create a public DID and resolve DIDDoc? is this possible in aries-framework-go?

sudeshrshetty commented 3 years ago

For public DIDs: you may have to inject your own VDR implementation to aries or have to create it outside.

@gouravvemula0 to resolve public DIDs use [htp-resolver-url](https://github.com/hyperledger/aries-framework-go/blob/main/cmd/aries-agent-rest/startcmd/start.go#L96-L103) aries opts. Sample can be found here

afrancoc2000 commented 2 years ago

@sudeshrshetty I was looking into this too, but it isn't completly clear to me. I'm running the open-api-demo, so if I understand well I only need to pass the variable HTTP_DID_RESOLVER or a parameter --http-resolver-url with peer@http://dev.greenlight.bcovrin.vonx.io and I would be able to create a public DID, a schema and a credentials definition in Sovrin using this method? or do I need to create an indyVDR class and implement the VDR interface? how do I define the seed? do I need to pass the genesis block somewhere?