IDIDManager.didManagerCreate() method
Creates and returns a new identifier
Signature:
didManagerCreate(args: IDIDManagerCreateArgs, context: IAgentContext<IKeyManager>): Promise<IIdentifier>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
args |
Required. Arguments to create the identifier | |
|
context |
*RESERVED* This is filled by the framework when the method is called. This method's execution context requires an |
Promise<IIdentifier>
Example
const identifier = await agent.didManagerCreate({
alias: 'charlie',
provider: 'did:ethr',
kms: 'local',
})