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

fix: consider all resolvable dids in invites "public" #2900

Merged
merged 3 commits into from
Apr 17, 2024

Conversation

dbluhm
Copy link
Member

@dbluhm dbluhm commented Apr 17, 2024

This solves an issue @ianco was seeing in connection reuse with did:peer:2/4.

There was a conflict between my expectations while working on did exchange 1.1 updates and what was implemented for connection reuse for did:peer; I was expecting my_did and their_did to only be set by operations taken in the DID Exchange manager whereas connection reuse was using these values to transfer knowledge of the invitation DID. Ultimately, for the implementation in DID Exchange, I need my_did and their_did to be unpopulated so we know we need to generate a new DID (which is generally what we want, a "pairwise" relationship). The use_did implementation and the logic that prevents generation of a new DID rely on my_did in particular.

The compromise I've landed on is to consider any invitation DID as a "public" DID, from the perspective of the connection record. While peer DIDs are not technically public, they are resolvable and the rest of the logic surrounding public DIDs transfers well to this scenario.

@dbluhm dbluhm requested a review from ianco April 17, 2024 21:52
Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
@dbluhm dbluhm force-pushed the fix/connection-reuse-did-peer branch from 1b5ba5d to 17ea7f5 Compare April 17, 2024 21:53
@ianco ianco enabled auto-merge April 17, 2024 23:09
Copy link

sonarcloud bot commented Apr 17, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@ianco ianco merged commit dab9468 into hyperledger:main Apr 17, 2024
8 checks passed
@dbluhm dbluhm deleted the fix/connection-reuse-did-peer branch April 18, 2024 17:28
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 this pull request may close these issues.

None yet

2 participants