Skip to content

Improve Key Management in DID Import [proposal] #1312

@DaevMithran

Description

@DaevMithran

Is your feature request related to a problem? Please describe.
The DID import api currently imports a DID with all keys specified in the argument, I propose to add the features mentioned below

  1. Be able to handle existing keys
  2. Bootstrap a DID from provided keys, this is useful for did:key and few others when you only know the keys but don't want to compute the DID beforehand
  3. Update an existing DID (re-import), a DID in the wallet could be updated externally we should sync any changes made to it on request

Describe the solution you'd like
Extract the list of keys required for the DID import, by resolving the DID and using extractPublicKeyHex util function. Now if the publicKeyHex is already in the wallet we should skip the key import step for it. But making sure we validate all the required keys are passed in the request.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions