The Chat tab lets you send messages from one BitName to another. The header of the tab says: "You pay a name to reach it. They keep the postage." Each message is a small payment on the BitNames sidechain, with the text encrypted inside it. Read about BitNames in the sidechains.
What is necessary
Chat uses the BitNames sidechain. If BitNames does not run, the tab shows BitNames Required and "BitNames sidechain is not connected". To use Chat, do these steps:
- Go to the Sidechains tab.
- Download and start BitNames.
- Register at least one BitName identity.
Read how to start a sidechain in how sidechains work.
Get a BitName
At the top of the tab, Chatting as: shows the BitName that you write from. If you own no BitName, it shows No BitNames owned.
To register a BitName, you must have a balance on the BitNames sidechain. If your BitNames balance is less than 10,000 sats, the tab shows Deposit to BitNames. This button opens a deposit to the BitNames sidechain.
When the balance is sufficient, the tab shows Register BitName. To register a name:
- Click Register BitName.
- Type the name in the BitName field.
- Click Register.
BitWindow first reserves the name, then registers it on the BitNames sidechain. A status bar shows the steps, for example Reserving and Registering. Each step waits for a BitNames block. At the end, the status bar shows that the registration is successful.
BitWindow also gives the new BitName an encryption key and a postage of 1000 sats. Other people use the key to write to you. The postage is the amount that a message to you must pay.
If you own more than one BitName, select the one to use in the list next to Chatting as:.
Add a contact
- Click Add Contact.
- Type the plaintext name of the BitName.
- When BitWindow shows Match found, click Add.
The BitNames sidechain keeps a name as a hash. BitWindow calculates the hash of the name that you type and finds the BitName that matches it. A BitName that BitWindow cannot read shows as (encrypted) in the list.
You can only add a BitName that has an encryption key. If the key is not set, BitWindow shows "This BitName has no encryption key set - cannot chat".
Send a message
- Select a contact in the Chats list.
- Type the text in the Type a message... field.
- Click the Send button.
The Send button shows the full cost of one message. Above the conversation, BitWindow shows the postage and the network fee for this contact.
A sent message shows waiting for a block until a BitNames block includes it. BitWindow reads new messages for your BitName every 30 seconds. It also reads messages that still wait in the mempool.
What a message costs
| Part | Amount | Who gets it |
|---|---|---|
| Postage | The amount that the recipient BitName asks for. The default is 1000 sats. | The recipient |
| Network fee | 100 sats | The BitNames sidechain |
The postage goes to the address that holds the recipient BitName.
The recipient can change the postage. Before each message, BitWindow reads the postage again from the sidechain. If the postage is higher than the amount that BitWindow showed you, it does not send the message. It shows "The postage increased to" and the new amount. Select Send again to accept the new cost.
The payment comes from your BitNames sidechain balance, not from your mainchain wallet.
Privacy
- BitWindow encrypts the text to the encryption key of the recipient BitName. Only the holder of that BitName can read it.
- BitWindow signs each message with the address that holds your BitName. The recipient can make sure that the message comes from your BitName.
- The payment itself is a transfer on the BitNames sidechain. The sidechain records the transfer, but the text stays encrypted.
- BitWindow keeps your chats encrypted on your computer, under a key from your wallet. The sidechain does not give a sent message back, so this saved copy is the only copy of your own messages.
Read more about privacy in security and privacy.
A message from an unknown sender
A message can come without a sender BitName. BitWindow shows it under Unknown sender. You cannot reply to it. BitWindow shows "This message has no known sender BitName. Add the sender by BitName before a reply."
Questions
What is necessary to use Chat in BitWindow?
The BitNames sidechain must run, and you must own at least one BitName. To register a BitName, you must have a balance on the BitNames sidechain.
What does a chat message cost in BitWindow?
You pay the postage that the other BitName asks for, plus a network fee of 100 sats. The default postage is 1000 sats. The reader keeps the postage.
Are BitWindow chat messages encrypted?
Yes. BitWindow encrypts each message to the encryption key of the recipient BitName. It also keeps your saved chats encrypted on your computer.
Why does my message show "waiting for a block"?
The message is a transfer on the BitNames sidechain. It shows "waiting for a block" until a BitNames block includes it.
Why can I not add a BitName as a contact?
A BitName without an encryption key cannot get messages. BitWindow shows "This BitName has no encryption key set - cannot chat".