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 deactivate_did RPC #58

Closed
Vishwas1 opened this issue Feb 15, 2022 · 2 comments · Fixed by #80
Closed

Implement deactivate_did RPC #58

Vishwas1 opened this issue Feb 15, 2022 · 2 comments · Fixed by #80

Comments

@Vishwas1
Copy link
Contributor

@Vishwas1 Vishwas1 changed the title Implement DID_deactivate RPC Implement deactivate_did RPC Feb 15, 2022
@arnabghose997 arnabghose997 self-assigned this Feb 22, 2022
@Vishwas1
Copy link
Contributor Author

Vishwas1 commented Feb 22, 2022

From w3c spec

If a DID has been deactivated, DID document metadata MUST include this property with the boolean value true. If a DID has not been deactivated, this property is OPTIONAL, but if included, MUST have the boolean value false.

The DID method specification MUST specify how a DID controller can deactivate a DID or state that deactivation is not possible.

Add new did_deactivate RPC

Input: similar to update DID

  1. Query the lastest version of did
  2. Check if the did is already deactivated, otherwise throw did_deactivation_err
  3. Check if contoller is trying to deactivate or not, otherwise throw authorization_err.
  4. Verify the signature, otherwise throw invalid_siganture_err
  5. Set DID metadata:didDoc.metadata.deactivate == true & didDoc.did == null / {}

Update the did_resolve query RPC

  • Add check if the did is already deactivated, if so then send error did_resolve_err, otherwise proceed.

Update the did_update rpc

  • Add check if the did is already deactivated, if so then send error did_resolve_err, otherwise proceed.

@arnabghose997 arnabghose997 linked a pull request Feb 22, 2022 that will close this issue
@arnabghose997
Copy link
Contributor

Discussion of treating deactivated DIDs : w3c/did-resolution#5

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

Successfully merging a pull request may close this issue.

2 participants