Here we are using the service endpoint discovery method. This can change because of the did:peer things.
We also use goal and accept to adress what is what
{
"id": "62c5666fbfecac42e632d703",
"to": [
"did:key:z6MkeXQbsmxZYtpZ5PKgib56E5rqvFRHNqg5YoQ11zrwsksJ"
],
"typ": "application/didcomm-plain+json",
"from": "did:key:z6MkkgfrEB9gSvpJui6yLmqHhcuuLjto9QXKCSa4WtHai4KR",
"thid": "f62e3124-3113-4147-8203-b7f899699ef3",
"attachments": [],
"type": "https://didcomm.org/out-of-band/2.0/invitation",
"body": {
"goal": "Issue VC",
"goal_code": "issue_vc",
"accept": [
"didcomm/v2"
],
"service": {
"id": "did:key:z6MkkgfrEB9gSvpJui6yLmqHhcuuLjto9QXKCSa4WtHai4KR#did-communication",
"type": "DIDCommMessaging",
"serviceEndpoint": "https://dev-open-messages-api-lth4gowdyq-ew.a.run.app/messages",
"priority": 0
}
}
}
OOB accept
{
"id": "62c56c090fba490019b4de9d",
"to": [
"did:key:z6MkkgfrEB9gSvpJui6yLmqHhcuuLjto9QXKCSa4WtHai4KR"
],
"typ": "application/didcomm-plain+json",
"from": "did:key:z6MkeXQbsmxZYtpZ5PKgib56E5rqvFRHNqg5YoQ11zrwsksJ",
"thid": "f62e3124-3113-4147-8203-b7f899699ef3",
"attachments": [],
"type": "https://didcomm.org/out-of-band/2.0/accept",
"body": {
"goal": "Issue VC",
"goal_code": "issue_vc",
"accept": [
"didcomm/v2"
],
"service": {
"id": "did:key:z6MkeXQbsmxZYtpZ5PKgib56E5rqvFRHNqg5YoQ11zrwsksJ#did-communication",
"type": "DIDCommMessaging",
"serviceEndpoint": "https://dev-open-messages-api-lth4gowdyq-ew.a.run.app/messages",
"priority": 0
}
}
}