-
Notifications
You must be signed in to change notification settings - Fork 10
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
Service encoding according to DIDComm v2 #48
Comments
cc @mepeltier |
@dbluhm, I am not sure how the encoding should work, because if I have (in "original" format):
it is encoded like (just without whitespace, which is added for readability):
But with newer format we have something like:
How this should be encoded in did:peer ? |
The same term shortening should take place in the nested structures:
|
Linked below is the current service encoding done by this library:
https://github.com/sicpa-dlab/peer-did-python/blob/main/peerdid/core/peer_did_helper.py#L42-L139
Notice that the encoding does not recursively descend into the service object.
Linked here is the spec for service endpoints for DIDComm v2 messaging:
https://identity.foundation/didcomm-messaging/spec/v2.0/#service-endpoint
Notice that the structure has changed from:
To:
This library should probably support both the "original" service format and the current spec defined service format.
The text was updated successfully, but these errors were encountered: