Function: generateKeys()
generateKeys(
keysetId
,keyTypes
?):Promise
<void
>
Description
Generate keys using the given keyset ID and array of key types.
As part of this process, the mobile app and Fordefi's servers run a Distributed Key Generation MPC protocol that creates the private keys. This function should be called after a call to the Create Keyset REST API.
Parameters
Parameter | Type | Description |
---|---|---|
keysetId | string | The ID of the empty keyset that was generated earlier using the Create Keyset REST API call. |
keyTypes ? | KeyType [] | An array of key types for the keyset. If you do not specify a value for this parameter, all key types are created. |
Returns
Promise
< void
>
A Promise that resolves when keyset generation is successful.