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

Adding, removing and updating keys with ADD_KEY, REM_KEY, MOD_KEY #111

Open
lovesh opened this issue Oct 13, 2018 · 0 comments
Open

Adding, removing and updating keys with ADD_KEY, REM_KEY, MOD_KEY #111

lovesh opened this issue Oct 13, 2018 · 0 comments

Comments

@lovesh
Copy link
Contributor

lovesh commented Oct 13, 2018

Currently, to add a new key, the spec specifies that the whole DID doc with the new key added must be submitted to the ledger. Similarly for removing and updating keys, the whole DID doc has to be submitted.
The proposal is to have separate transactions for each action so the whole DID doc does not need to be sent and it is efficient for the ledger to verify compared to calculating a delta between the submitted doc and existing doc.

  1. Adding a new key is done with ADD_KEY txn.
  2. Removing a new key is done with REM_KEY txn.
  3. Updating an existing key is done with MOD_KEY txn
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

No branches or pull requests

1 participant