-
Notifications
You must be signed in to change notification settings - Fork 112
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
fix(ref-imp): allow setting controller property #1174
base: master
Are you sure you want to change the base?
Conversation
Use the controller property of the public key entry, if present, as the verification method controller property.
@thehenrytsai this would be a breaking consensus change for existing implementations. Can we accept this and plan an ION release separately? |
@@ -218,7 +218,7 @@ export default class DocumentComposer { | |||
|
|||
const publicKeyIdSet: Set<string> = new Set(); | |||
for (const publicKey of publicKeys) { | |||
const allowedProperties = new Set(['id', 'type', 'purposes', 'publicKeyJwk']); | |||
const allowedProperties = new Set(['id', 'type', 'purposes', 'publicKeyJwk', 'controller']); |
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.
The linked spec says the controller must be a DID and optionally not exceed some maximum length. Need to add such checks and tests accordingly.
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.
Recommend (also responding to @csuwildcat) to just copy the changes to latest
folder to 1.0
also so that we don't need to snapshot an additional version folder just for this change. I'd be shocked if there were any operations that were discarded because of inclusion of a controller
property.
hello, any update for this change? does sidetree plan to support controller property |
Was waiting for the contributor to update the PR to merge this. I'd love to know more about the scenarios/use cases of this property from anyone who's an advocate for the feature, I can probably make the requested changes myself and merge it in! |
Allow setting the controller property of a public key entry (verification method object), as described here: https://identity.foundation/sidetree/spec/v1.0.0/#add-public-keys