• Creates a new identity.

    Does not need a running one instance. It will generate new key pairs and if no personEmail or instanceName is specified it will also generate random values for those.

    Parameters

    • Optionalurl: string

      The communication server url to include in the identity objects.

    • OptionalpersonEmail: string

      The person email to use. If not specified a random string is used.

    • OptionalinstanceName: string

      The instance name to use. If not specified a random string is used.

    Returns Promise<{
        public: Identity;
        secret: IdentityWithSecrets;
    }>