-
Notifications
You must be signed in to change notification settings - Fork 7
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
fix: Update PeerDid resolver to support the multiple service individually encoded #37
Conversation
Signed-off-by: mineme0110 <[email protected]> Update PeerDid resolver to support the multiple service individually encoded
4dbf0d9
to
e3b0e52
Compare
@andkononykhin @dhh1128 @ashcherbakov |
There was a problem hiding this 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.
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. |
I approved the PR, but I also don't have write access permissions anymore. |
Thank You I will try to find out who is the maintainer |
@dkulic |
Thanks @mineme0110 for this contribution. |
@dkulic Thank you |
@andkononykhin Please will you you be able to do a release, I don't have the necessary permissions |
@andkononykhin |
@mineme0110 I released 0.4.0. |
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