IDIDManager.didManagerCreate() method
Creates and returns a new identifier
Signature:
didManagerCreate(args: IDIDManagerCreateArgs, context: IAgentContext<IKeyManager>): Promise<IIdentifier>;
Parameters
Parameter | Type | Description |
---|---|---|
args | IDIDManagerCreateArgs | Required. Arguments to create the identifier |
context | IAgentContext<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',
})