Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

did:peer respond-in-kind behavior not working for multiuse OOB+DIDExchange #2817

Closed
dbluhm opened this issue Feb 28, 2024 · 0 comments · Fixed by #2850
Closed

did:peer respond-in-kind behavior not working for multiuse OOB+DIDExchange #2817

dbluhm opened this issue Feb 28, 2024 · 0 comments · Fixed by #2850
Assignees

Comments

@dbluhm
Copy link
Contributor

dbluhm commented Feb 28, 2024

ACA-Py is intended to "respond in kind" to DID Exchange requests:

  • If a did:peer:2 is sent, it should respond with a did:peer:2
  • If a did:peer:4 is sent, it should respond with a did:peer:4

This works for single use invitations. However, it would seem that multi-use invitations are not behaving the same. A DID Exchange request with a did:peer:2 is being responded to with an unqualified DID but still with a did_rotate~attach, which is pretty weird...

{
  "@type": "https://didcomm.org/didexchange/1.0/response",
  "@id": "6726877c-6e06-4932-9072-123f96604e3e",
  "~thread": {
    "thid": "022cc7a4-b9b2-4fbd-9d32-05a0b9c29482",
    "pthid": "740619ba-ad06-401c-aa6d-0cf47c67624a"
  },
  "did": "4PfUhmBHLrvGfs9BRdiXB8",
  "did_rotate~attach": {
    "@id": "60785fe3-f7d6-4d9f-aac8-b933e07b71dd",
    "mime-type": "text/string",
    "data": {
      "base64": "NFBmVWhtQkhMcnZHZnM5QlJkaVhCOA==",
      "jws": {
        "header": {
          "kid": "did:key:z6Mkvj1tU2JaCN6yhSNCqrgZbbM1ujtJeUwXY9GcqzsqNwhY"
        },
        "protected": "eyJhbGciOiAiRWREU0EiLCAia2lkIjogImRpZDprZXk6ejZNa3ZqMXRVMkphQ042eWhTTkNxcmdaYmJNMXVqdEplVXdYWTlHY3F6c3FOd2hZIiwgImp3ayI6IHsia3R5IjogIk9LUCIsICJjcnYiOiAiRWQyNTUxOSIsICJ4IjogIjhjUkdxaktXcEVJSFFmOXJuMDR6NWlGQ0IyYmtENkMzazMtanhzQUN2WTgiLCAia2lkIjogImRpZDprZXk6ejZNa3ZqMXRVMkphQ042eWhTTkNxcmdaYmJNMXVqdEplVXdYWTlHY3F6c3FOd2hZIn19",
        "signature": "WYPCePSGG_Tgjcxv42MNNAxuzttGc8nZBSe6ctl3ZVphuXP-0EYzg6VptnS8VQwmJdee3Md3goHqMbxkrPlkAg"
      }
    }
  }
}
@swcurran swcurran changed the title did:peer resond-in-kind behavior not working for multiuse OOB+DIDExchange did:peer respond-in-kind behavior not working for multiuse OOB+DIDExchange Mar 18, 2024
@dbluhm dbluhm assigned dbluhm and unassigned ianco Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants