What happens if I lose my XChat key?

Last checked

If you lose your XChat private key and never backed it up, the account can't be recovered: there is no SMS or email reset, and the XChat team has no copy to send back. You can create a new account and ask to be invited to your circle again, but the old identity is gone, and so is anything that existed only on the lost phone.

First, make sure it's really lost

"I lost my key" usually means one of two things. If XChat is still installed and signed in on a phone you have, the key is still on that phone: open your profile → Keys and copy the private key somewhere safe right now (how to back it up). Nothing is lost yet.

The key is truly gone only when the last place it existed is gone and no copy was made: the phone was lost, stolen, broken or reset, or XChat was uninstalled or its data cleared. Before you give up, search the places a copy could be hiding:

  • Your password manager. Search for "nsec", "XChat" and "Nostr".
  • Notes, paper, printouts. The private key is a 63-character string that starts with nsec1.
  • A Nostr signer app or a bunker:// remote signer, if you signed in through one. Then the key lives in the signer, and that's what you need back.
  • Another Android phone where you signed in with the same key and never signed out.

Why nobody can reset it for you

Most messengers hang your account on a phone number or an email address, so getting back in means receiving a code. XChat asks for neither. At sign-up the app creates a Nostr key pair on your phone: the public key identifies you, and the private key is the account. Whoever holds it is you, as far as the app and your circle's relay are concerned.

That's what keeps phone numbers out of your circles and leaves no SMS code for a scammer to trick out of you. The cost is that there's no side door. The key was made on your phone and never handed to anyone, so XChat support can't look it up, reset it or rebuild it, whatever proof of identity you send.

What you lose, and what carries on

After losing the key with no backup
Your accountGone. A new account has a new key, so your circle sees it as a different person until you tell them.
Your place in your circlesYou can't get back in as the old account. The new one needs a fresh invite.
Messages, photos and files on the lost phoneTreat them as gone. Don't count on old history appearing in a new account.
Messages you sent to othersStill on the recipients' phones, like any message they received.
A circle you created and pay forBilling runs through Google Play and your Google account, not the key, so the subscription keeps renewing until you cancel it there.

Getting back into your circle

You can't have the old account back, but you can be back in the conversation within minutes:

  1. Open XChat (reinstall it if needed) and create a new account. It only asks for a display name.
  2. Before anything else, save the new private key from profile → Keys. Two copies in two places is better than one.
  3. Ask the person who created the circle for a new invite link or QR code, and join with it. Invited members join free.
  4. Tell the circle which name is the new you, ideally by voice or in person, so nobody keeps writing to the dead account or mistakes someone else for you.
  5. If you were the circle's creator and payer, check the old subscription in Google Play (how to cancel it), and write to support@0xchat.com if you're unsure what to do with that circle.

If the key was stolen rather than lost

A key someone else has copied is a worse problem than a lost one. With it they can sign in as you, read new messages in your circles and post under your name. There's no password to change, because the key itself is the account, so the response is the same as for a lost key: start a new account, get a fresh invite, and warn your circle by voice that the old account is no longer you.

Keys usually leak because someone was persuaded to paste them somewhere. Never send your private key to anyone, including a person who says they're from XChat support or offers to "restore" your account.

Common questions

Can XChat support recover my account if I prove who I am?
No. There's nothing on XChat's side to recover it from. The key was generated on your phone, and no ID, receipt or old message can recreate it.
I only remember my account name. Is that enough to log back in?
No. Display names aren't secret or unique, so they can't open an account. Only the private key, or the signer that holds it, can.
Can I sign in with my public key (npub)?
No. The key that starts with npub is your public identifier and is safe to share. Signing in needs the private key that starts with nsec, a bunker:// remote signer or a Nostr signer app.
I found my key after making a new account. Do my old messages come back?
Signing in with the old key gets you back into the old account and its circles, but message history may not return. Keep whichever account the circle now knows as you, and tell people which one that is.
Does losing my key cancel my subscription?
No. Google Play bills your Google account, and the subscription renews until you cancel it in Google Play. Uninstalling the app doesn't cancel it either.

Sources

How this page was made: drafted with AI help by the XChat team. What it says about XChat was checked against the app's open-source code; what it says about other apps links to their own pages, as of the date above. Spotted a mistake? Write to support@0xchat.com.