Skip to main content

DIDManager.didManagerAddKey() method

Adds a key to a DID Document

Signature:

didManagerAddKey({ did, key, options }: IDIDManagerAddKeyArgs, context: IAgentContext<IKeyManager>): Promise<any>;

Parameters

Parameter

Type

Description

{ did, key, options }

IDIDManagerAddKeyArgs

context

IAgentContext<IKeyManager>

**Returns:**

Promise<any>

identifier provider specific response. Can be txHash, etc,