-
Notifications
You must be signed in to change notification settings - Fork 9
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
Replace publicKeyBase58 with publicKeyMultibase #82
Conversation
See verification method properties of DID core data model: https://www.w3.org/TR/did-core/#verification-method-properties Regarding backwards compatibility, it looks OK to me to replace the current property;
|
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.
We use assert/require.NoError
instead of nil
check and t.Fatal
(failure message is optional, but feel free to add the,).
Co-authored-by: reinkrul <[email protected]>
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.
Thanks for the suggestion and work. I would suggest to keep PublicKeyBase58 in the VerificationMethod struct so we can always parse it (backwards compatible) and use the PublicKeyMultibase for adding new keys (via NewVerificationMethod).
This would require some added logic since either PublicKeyBase58 or PublicKeyMultibase must be filled, but not both.
The spec now only specifies the multibase variant, so I'm fine with removing the base58 variant. |
Then the lib MUST go to a new major version and you have to support 2 versions |
Hepp! I have had a few busy days at work. Fixed the bad test. Should be in accordance with @reinkrul wishes now. I understand @woutslakhorst objection. I thought about and assumed a major bump. But as @reinkrul stated elsewhere - we're not at 1.0 yet. I'm good with either, but feel that supporting a deprecated version before 1.0 is being too nice. from my POV changes have finished as requested. |
Co-authored-by: reinkrul <[email protected]>
We're running the current version in production and there's no way we can move towards the new format. |
I was mistaken, We only use |
Im sorry. I don't know how to solve that issue. Thanks for taking the time to review my suggestions. |
I'll give it a go. |
Il miglior fabbro |
You deleted your branch, so I can't clone it. Do you still have it locally and can you push it again? |
Oops. No sry. But the PR still shows the diffs and such, so I suspect there
is a copy in the pull request. The changes were not very big, so It's just
a little copy and paste, I suspect.
- bahner
tir. 26. sep. 2023 kl. 09:07 skrev reinkrul ***@***.***>:
… Im sorry. I don't know how to solve that issue. Thanks for taking the time
to review my suggestions.
You deleted your branch, so I can't clone it. Do you still have it locally
and can you push it again?
—
Reply to this email directly, view it on GitHub
<#82 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACNLSL24F3LQKXCBDU3GTS3X4J5LTANCNFSM6AAAAAA4SHAGIE>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
--
Mvh,
Lars Bahner
|
Opened #86 |
Hepp! I believe this PR can be of use. The core says to start using multibase for encoding of keys, so I've attempted to add that. Don't be shy with civil criticisism.