Skip to main content

IDIDManager.didManagerCreate() method

Creates and returns a new identifier

Signature:

didManagerCreate(args: IDIDManagerCreateArgs, context: IAgentContext<IKeyManager>): Promise<IIdentifier>;

Parameters

ParameterTypeDescription
argsIDIDManagerCreateArgsRequired. Arguments to create the identifier
contextIAgentContext<IKeyManager>*RESERVED* This is filled by the framework when the method is called. This method's execution context requires an agent that has IKeyManager methods.

Returns:

Promise<IIdentifier>

Example

const identifier = await agent.didManagerCreate({
alias: 'charlie',
provider: 'did:ethr:goerli',
kms: 'local',
})