-
Notifications
You must be signed in to change notification settings - Fork 516
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
Reusing peer DID for invitation resulting in DID Ex failure #2890
Comments
Fixes openwallet-foundation#2890. When reusing DIDs in invitations, the invitation key is no longer a unique value by which a connection record can be discovered. To workaround this, this change causes connection records to be looked up by invitation message id (request message's pthid) instead of by invitation key. Signed-off-by: Daniel Bluhm <[email protected]>
I suspect this scenario was addressed in the original did:peer:2/4 reuse PR and I inadvertently clobbered the changes when I was addressing the |
Do you think we need a 0.12.1 for this one? |
Yes, unfortunately. Otherwise, the only way to achieve using invites with did:peer:2/4 would be through multi-use invitations. And even then, I suspect there may be some subtle issues because of the old expectation of 1 invitation key to 1 connection record. I've addressed everywhere but in the connection protocol implementation in #2891. |
When using the new feature of using a
did:peer:4
ordid:peer:2
and not requiring the creation of a new unique did using thecreate_unique_did
parameter, the first DID Exchange request will succeed. However, subsequent DID Exchange requests will fail with the following error:Previously, the DID Exchange manager depended on looking up a unique connection by invitation_key when the request was not to a public DID. Given that the same DID was used for both invitations, the invitation_key would be the same and the look up fails.
If using the invitation as a multi-use invitation, the DID exchange succeeds. This occurs only when generating unique invitations but using the same DID.
The text was updated successfully, but these errors were encountered: