Appearance
DIDComm Interface
Besides the web frontendm and an HTTP REST API, godiddy.com also supports a DIDComm interface for resolving DIDs.
See the following resources for additional information:
- https://github.com/sicpa-dlab/acapy-resolver-didcomm
- https://github.com/sicpa-dlab/acapy-resolver-universal
- https://github.com/hyperledger/aries-rfcs/tree/main/features/0124-did-resolution-protocol
DIDComm OOB Connection Invitations
For https://didcomm.godiddy.com/
:
json
{
"@type": "https://didcomm.org/out-of-band/1.0/invitation",
"@id": "4f3c139d-d32f-400d-a86b-15122c882d75",
"services": [
{
"id": "#inline",
"type": "did-communication",
"recipientKeys": [
"did:key:z6MkiRVvJK2t1N1ZgFVn4246MMbEmFHLHovdrAgospLfMPwi"
],
"serviceEndpoint": "http://didcomm.godiddy.com:8180"
}
],
"handshake_protocols": [
"https://didcomm.org/didexchange/1.0",
"https://didcomm.org/connections/1.0"
],
"label": "Resolver"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
For https://didcomm.dev.godiddy.com/
:
json
{
"@type": "https://didcomm.org/out-of-band/1.0/invitation",
"@id": "f09e5ffd-e283-45ac-90a5-d5f01b8e4a4b",
"services": [
{
"id": "#inline",
"type": "did-communication",
"recipientKeys": [
"did:key:z6MkfDuHQDKYFGPDK6KPsqWcayWZq2ukRF4rttGib6pk5T7o"
],
"serviceEndpoint": "http://didcomm.dev.godiddy.com:8180"
}
],
"handshake_protocols": [
"https://didcomm.org/didexchange/1.0",
"https://didcomm.org/connections/1.0"
],
"label": "Resolver"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Example flow with ACA-py
Assuming an instance of ACA-py is running on localhost
port 4000
and is somehow reachable via HTTP or WS inbound transport:
Establish a DIDComm connection to didcomm.godiddy.com
, using the connection invitation above:
bash
curl -X 'POST' \
'http://localhost:4000/out-of-band/receive-invitation?auto_accept=true' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"@type":"https://didcomm.org/out-of-band/1.0/invitation","@id":"4f3c139d-d32f-400d-a86b-15122c882d75","services":[{"id":"#inline","type":"did-communication","recipientKeys":["did:key:z6MkiRVvJK2t1N1ZgFVn4246MMbEmFHLHovdrAgospLfMPwi"],"serviceEndpoint":"http://didcomm.godiddy.com:8180"}],"handshake_protocols":["https://didcomm.org/didexchange/1.0","https://didcomm.org/connections/1.0"],"label":"Resolver"}' \
| jq '.connection_id'
1
2
3
4
5
6
2
3
4
5
6
Configure ACA-py to use this DIDComm connection for resolving certain DID methods:
bash
curl -X 'POST' \
'http://localhost:4000/resolver/register/{connection_id}' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"methods":["v1","sov"]}' \
| jq
1
2
3
4
5
6
2
3
4
5
6
Resolve a DID over this DIDComm connection:
bash
curl -X 'GET' \
'http://localhost:4000/resolver/resolve/did%3Asov%3AWRfXPg8dantKVubE3HX8pw' \
-H 'accept: application/json'
1
2
3
2
3