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

refactor: use did-peer-2 instead of peerdid #2561

Merged
merged 3 commits into from
Oct 25, 2023

Conversation

dbluhm
Copy link
Contributor

@dbluhm dbluhm commented Oct 24, 2023

Speaking frankly, I felt that the peerdid library was a bit overly complicated. On top of that, peerdid is not up to date with the corrections proposed in this PR to the did:peer method specification:

decentralized-identity/peer-did-method-spec#62

did-peer-2 is a minimal implementation of did:peer:2 and did:peer:3. It is up to date with the above PR. The corrections to the spec and the library lend themselves to a simpler implementation of the did:peer:2 and did:peer:3 resolvers. This refactor supports work to add did:peer:2 support to OOB + DID Exchange.

New in this PR is a cleanup mechanism for the did:peer:3 to did:peer:2 mapping records. When a connection is deleted, we check whether there are any potential mappings to remove.

Speaking frankly, I felt that the peerdid library was a bit overly
complicated. On top of that, peerdid is not up to date with the
corrections proposed in this PR to the did:peer method specification:

decentralized-identity/peer-did-method-spec#62

did-peer-2 is a minimal implementation of did:peer:2 and did:peer:3.
It is up to date with the above PR. The corrections to the spec and the
library lend themselves to a simpler implementation of the did:peer:2
and did:peer:3 resolvers. This refactor supports work to add did:peer:2
support to OOB + DID Exchange.

New in this PR is a cleanup mechanism for the did:peer:3 to did:peer:2
mapping records. When a connection is deleted, we check whether there
are any potential mappings to remove.

Signed-off-by: Daniel Bluhm <[email protected]>
@dbluhm
Copy link
Contributor Author

dbluhm commented Oct 24, 2023

Integration tests failed. Looking at the logs, it seems like it was a JSON-LD context load failure: https://www.w3.org/2018/credentials/v1 failed to load. I think this is unrelated to my changes so I'm rerunning the action.

@swcurran
Copy link
Contributor

Looks good — running the AATH acapy runset...

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@swcurran swcurran merged commit c616ac6 into openwallet-foundation:main Oct 25, 2023
8 checks passed
@dbluhm dbluhm deleted the refactor/did-peer-2 branch January 30, 2024 21:31
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.

2 participants