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

ParameterTypeDescription
{ did, key, options }IDIDManagerAddKeyArgs
contextIAgentContext<IKeyManager>

Returns:

Promise<any>

identifier provider specific response. Can be txHash, etc,