-
Notifications
You must be signed in to change notification settings - Fork 19
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
Address did:peer:2 spec changes #64
Comments
https://identity.foundation/peer-did-method-spec/ |
It should have been updated... good catch, I'll investigate what went wrong! |
Thanks for putting this issue together, by the way! This is excellent. We'll work on getting the didcomm-demo updated as well as the Indicio Mediator (no public repo to link to at the moment but feel free to add to your list). We will likely update those two projects in tandem. |
For sicpa peer-did-jvm library |
Looking at the list, there's a library under the uniresolver that is missing. The veramo labs depends on a library that handles the actual parsing of DIDs and here's a PR for the fixes aviarytech/did-peer#3 |
Thanks @frostyfrog. So now we can update the version of |
@FabioPinheiro @frostyfrog I bumped the versions of the libraries in the uniresolver chain of dependencies. |
That is great. I'm seeing a lot of fix/PRs for this lately. |
The goal of this ticket is just to track the adoption of the community for the specs change.
There are some spec changes for
did:peer:2...
that are breaking changes for DID Comm.In order to achieve interoperability. It's important to fix libraries that implement
did:peer:2
and update all applications that depend on those libraries.I'm pretty sure this list is far from being complete.
Feel free to add to this list. Also, help us contact the maintainers by creating tickets on the respective libraries.
Context
The changes were merged in this commit a5eca6b
Both issues have possible mitigation solutions that allow a smoother migration.
Although previous implementations are considered faulty! Since DID methods have no version.
Issue 1
The first is to fix the encoding to follow the DID Document.
The DID Document's service example in
did:peer
looks likeBut it should instead look like
We should make sure that our
did:peer
used on the applications are encoded correctly.when decrypting you look for that key
Issue 2
The second problem is about the
id
of the keys (kid
).It was unspecified before. So each library generates the
kid
in its own way.The major problem is that the
kid
is used on the DID Comm message itself. More specifically the fieldskid
in the message's Protected Header is thekid
of the sender and therecipients.header.kid
is also thekid
recipient. When decrypting you look for that key.So the agent encrypting and the agent decrypting MUST have the same or an equivalent resolver (the key id needs to be deterministic).
The text was updated successfully, but these errors were encountered: