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

Implement controller property in didDoc #52

Closed
Vishwas1 opened this issue Feb 13, 2022 · 1 comment · Fixed by #65
Closed

Implement controller property in didDoc #52

Vishwas1 opened this issue Feb 13, 2022 · 1 comment · Fixed by #65

Comments

@Vishwas1
Copy link
Contributor

Vishwas1 commented Feb 13, 2022

How to implement

Add controller property in DID data structure.
https://github.com/hypersign-protocol/hid-node/blob/main/proto/ssi/v1/did.proto#L11

As per spec

When a controller property is present in a DID document, its value expresses one or more DIDs.

{
  "@context": "https://www.w3.org/ns/did/v1",
  "id": "did:example:123456789abcdefghi",
  "controller": "did:example:bcehfew7h32f32h7af3",
}

Any verification methods contained in the DID documents for those DIDs SHOULD be accepted as authoritative, such that proofs that satisfy those verification methods are to be considered equivalent to proofs provided by the DID subject.

Kindly see how cheqd is doing, it looks like data type of controller should be an array, but still get it verified once.

As per cheqd doc

controller (optional): A list of fully qualified DID strings or one string. Contains one or more DIDs who can update this DIDdoc. All DIDs must exist.

"controller": ["did:cheqd:mainnet:N22KY2Dyvmuu2PyyqSFKue"]

Test in different scenario

#45

@Vishwas1
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
2 participants