Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

clehner
Copy link
Contributor

@clehner clehner commented Jan 28, 2022

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

Use the controller property of the public key entry, if present, as the
verification method controller property.
@csuwildcat
Copy link
Member

@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']);
Copy link
Collaborator

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.

Copy link
Collaborator

@thehenrytsai thehenrytsai left a 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.

@zkwzk
Copy link

zkwzk commented Apr 1, 2022

hello, any update for this change? does sidetree plan to support controller property

@thehenrytsai
Copy link
Collaborator

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants