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>Execution context. Requires agent that has IKeyManager methods
Returns:

Promise<IIdentifier >

Example

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