Skip to main content

IdentityWallet.generateKey() method

Generates a new key

Signature:

generateKey(keyType: KmsKeyType): Promise<KmsKeyId>;

Parameters

ParameterTypeDescription
keyTypeKmsKeyTypesupported key type by KMS

Returns:

Promise<KmsKeyId>

Promise<KmsKeyId> - creates a new key BJJ or ECDSA