Skip to main content

IonDIDProvider.createIdentifier() method

Creates and returns a new identifier

Signature:

createIdentifier({ kms, options, alias }: {
kms?: string;
alias?: string;
options?: ICreateIdentifierOpts;
}, context: IAgentContext<IKeyManager>): Promise<Omit<IIdentifier, 'provider'>>;

Parameters

ParameterTypeDescription
{ kms, options, alias }{ kms?: string; alias?: string; options?: ICreateIdentifierOpts; }
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<Omit<IIdentifier, 'provider'>>