@refinio/one.models
    Preparing search index...

    Function writeNewIdentityToFile

    • Creates a random identity and writes it to a file.

      Does not need a running one instance.

      Parameters

      • fileNamePrefix: string

        The prefix of the file. ${fileNamePrefix}_secret.id.json is the identity with secret keys, ${fileNamePrefix}.id.json is the identity only with public keys.

      • Optionalurl: string

        The communication server url to include in the identity file.

      • 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;
              publicFileName: string;
              secret: IdentityWithSecrets;
              secretFileName: string;
          },
      >