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: Update PeerDid resolver to support the multiple service individually encoded #37

Merged

Conversation

mineme0110
Copy link
Contributor

@mineme0110 mineme0110 commented Nov 23, 2023

The peer-did-jvm library currently does not correctly resolve peer DIDs that have multiple individually encoded services, as outlined in the peer DID specification. For instance, it cannot accurately handle DIDs similar to the example provided.

did:peer:2.Vz6Mkj3PUd1WjvaDhNZhhhXQdz5UnZXmS7ehtx8bsPpD47kKc.Ez6LSg8zQom395jKLrGiBNruB9MM6V8PWuf2FpEy4uRFiqQBR.SeyJ0IjoiZG0iLCJzIjp7InVyaSI6Imh0dHA6Ly9leGFtcGxlLmNvbS9kaWRjb21tIiwiYSI6WyJkaWRjb21tL3YyIl0sInIiOlsiZGlkOmV4YW1wbGU6MTIzNDU2Nzg5YWJjZGVmZ2hpI2tleS0xIl19fQ.SeyJ0IjoiZG0iLCJzIjp7InVyaSI6Imh0dHA6Ly9leGFtcGxlLmNvbS9hbm90aGVyIiwiYSI6WyJkaWRjb21tL3YyIl0sInIiOlsiZGlkOmV4YW1wbGU6MTIzNDU2Nzg5YWJjZGVmZ2hpI2tleS0yIl19fQ

To address this issue, This PR updates the regex validation to support multiple services encoded separately. Additionally, it modifies the peer DID resolver to ensure correct resolution of such DIDs.
This change aligns with the recent updates in the peer DID method specification, as seen in PR #67 on the repository
decentralized-identity/peer-did-method-spec#67

These improvements are designed to enhance the library's functionality without breaking any existing behavior of the library.

However, in future, I will raise a few more small PRs to align the library with the latest specifications.
https://identity.foundation/peer-did-method-spec

Signed-off-by: mineme0110 <[email protected]>
Update PeerDid resolver to support the multiple service individually encoded
@mineme0110
Copy link
Contributor Author

@andkononykhin @dhh1128 @ashcherbakov
Hello Guys can you please review this PR

Copy link
Contributor

@dhh1128 dhh1128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@dhh1128
Copy link
Contributor

dhh1128 commented Dec 4, 2023

I have left a positive review, but I do not have write access to this repo anymore, so I can't merge it. If you can't get the attention of maintainers, you may need to fork it and do the fix there.

@ashcherbakov
Copy link
Contributor

I approved the PR, but I also don't have write access permissions anymore.

@mineme0110
Copy link
Contributor Author

I have left a positive review, but I do not have write access to this repo anymore, so I can't merge it. If you can't get the attention of maintainers, you may need to fork it and do the fix there.

Thank You I will try to find out who is the maintainer

@mineme0110
Copy link
Contributor Author

@dkulic
Hello Please can you review this PR
Thank You

@dkulic dkulic merged commit 4d044f1 into sicpa-dlab:main Dec 5, 2023
17 checks passed
@dkulic
Copy link
Contributor

dkulic commented Dec 5, 2023

Thanks @mineme0110 for this contribution.

@mineme0110
Copy link
Contributor Author

@dkulic Thank you
Will you be able to do a release, I don't have the necessary permissions
https://github.com/sicpa-dlab/peer-did-jvm/blob/main/docs/release.md

@mineme0110
Copy link
Contributor Author

@andkononykhin Please will you you be able to do a release, I don't have the necessary permissions
https://github.com/sicpa-dlab/peer-did-jvm/blob/main/docs/release.md

@mineme0110
Copy link
Contributor Author

@andkononykhin
Reminder againe Please will you be able to do a release

@dkulic
Copy link
Contributor

dkulic commented Jan 9, 2024

@mineme0110 I released 0.4.0.

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.

4 participants