-
Notifications
You must be signed in to change notification settings - Fork 99
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
Verification method block should be a first citizen like public keys #283
Comments
@OR13 @dlongley In case there is already a way to achieve that behaviour, please provide an example and we can close that issue. It might be even worth to provide an example in the specification. I could probably also live with having an |
This is essentially a request to rename In an ideal world, we don't reuse keys for things, so there is no size benefit to linking, since each key is declared only in the block for which it is used.... In the real world, its extremely common to declare a key once in For DID Methods that don't have a default public key... like IMO, this is what a
|
PS, its totally valid today... https://github.com/w3c/did-core-registries/blob/master/contexts/did-v1.jsonld#L140 all we need is to define |
@OR13 thanks, sounds pretty good! |
@kdenhartog PR #284 expands the definition in terminology, but doesn't add |
@rhiaro I was about to add the same note. Thanks for pointing that out. If there is a PR that fixes that, I'm fine with closing this issue. |
Thanks for the clarity! Makes sense to me now that you've pointed it out. |
Public keys in the public key section can be referenced in other sections of the DID Doc, e.g.,
authentication
. That is great because it makes the DID Doc smaller in case the same public key is used for multiple purposes.Verification methods should have the same option.
As per https://www.w3.org/TR/did-core/#authentication:
ATM, referencing verification methods other than public keys is not possible. IMO, it would make more sense to introduce
verificationMethod
as a new first citizen block. That block would list the verification methods, so that they can be referenced in other sections of the DID Doc, e.g., authentication, in the same way as public keys.Another approach would be to just rename the
publicKey
section inverificationMethod
which might be even the better approach.An example of a verification method that would benefit from this approach is
ethereumAddress
.The text was updated successfully, but these errors were encountered: