$cipher.createKey

Creates a new key and adds it to the accounts list.
Syntax
    $cipher{createKey}{keyName}
    $cipher.createKey{keyName}
DocumentationCreates a new key and adds it to the accounts list: $cipher{createKey}{keyName}

    Parameters:
      createKey, a flag to indicate that a key is to be created.
      keyName, the name of the key to be created.
    Returns:
      the newly created key.
Examples
Create a new key and add it to the key list of the current account:
    $cipher{createKey}{myKey}

    Note: the key has been created and added to the accounts key list,
    but it has not been selected for usage.
GroupSpecial
Minimum required transaction-mode:UPDATE=TREE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters1
Maximum parameters 4