-
Notifications
You must be signed in to change notification settings - Fork 90
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
[Task] Change DID publicKey formats to publicKeyMultibase
according to DID standard
#296
Comments
I don't really want to rush to make this change. It seems it was added to the standard fairly recently and is still being debated in various GitHub issues over at did-core. We should still update the version of the DID standard but preferably to a more notable release like the previous Candidate Recommendation from March 18. After updating to this version we could include the Thoughts? |
While the I am of the opinion that we should add support for
Agreed, |
Regarding implementing The multibase crate seems lightweight and supports all the encodings on the Multibase draft specification. It runs on the
It also shows similar performance to the
An alternative crate is multiformats. However, it has unnecessary features (for our use-case) and dependencies as it implements hashing algorithms and other codecs in addition to Multibase, so it is overall less suited. Given that the crate seems to have low overhead, and that Multibase specifies 22 encodings, I am of the opinion that we should simply use the multibase crate. Other alternatives such as using multiple individual crates for each base or implementing a subset ourselves are less attractive options and I don't see any advantages other than avoiding the extra dependency. Aside: one thing to note is that we cannot support the identity (0x00) base since arbitrary bytes from a key cannot be represented as a UTF-8 string in general. Since |
publicKeyMultibase
according to DID standard
Link to PR marking |
@cycraig This can be closed, right? |
While the multibase functionality is complete, I believe we still default to Whether or not to remove |
Description
Implement support for
publickeyMultibase
according to the new DID standard.Motivation
Stay compliant with W3C standard
Resources
To-do list
Create a task-specific to-do list . Please link PRs that match the To-do list item behind the item after it has been submitted.
publickeyMultibase
via crate or ourselves (may limit to subset of useful encodings) - AddpublicKeyMultibase
#307publicKeyBase58
- Update methods to default toPublicKeyMultibase
#443Change checklist
Add an
x
to the boxes that are relevant to your changes, and delete any items that are not.The text was updated successfully, but these errors were encountered: