A friend code holds your public key, your name and the addresses your computer can be reached at. It isn't encrypted: anyone who sees it can read all three. Treat it like a phone number with your current location attached, and share it only with people you want to hear from.
How it works
The code is TACT-VC- followed by Base32 text. Decoded, it holds:
| Part | Content |
|---|---|
| Version | 1 |
| Public key | your identity, 32 bytes |
| Name | your name at the time you copied the code, up to 32 bytes |
| Addresses | up to 6 IP addresses with port: public ones first, then local network ones (see Who sees your IP address) |
| Check | 4 bytes of a SHA-256 over the rest, to catch copying mistakes |
The check only catches typos. It doesn't prove who made the code.
Pasting a code sends its owner a friend request. Pasting the code of someone who is already your friend only updates their addresses.
What others can see
Anyone who gets your code, from you or from someone you sent it to, learns:
- your public key and the name you had then,
- your addresses at that time, including local network ones,
- whether Tact-VC is running there, for as long as the address stays yours.
With it they can send you one friend request (see What a stranger can do). They can't call you, write to you or see your picture unless you accept.
Limits
- A code can't be taken back. It stays valid as long as your key does. The addresses in it go stale when your connection changes, but the key and name don't.
- A swapped code looks the same. If someone replaces your code on the way, your friend adds their key. Compare the Safety fingerprint by voice once.
- Posting a code publicly lets anyone send you requests and see when you're online at those addresses.
Where to share it
- Send it in a private message to the one person it's for.
- Don't post it in public channels, forums or profiles.
- After your connection changes, send it again only to friends who can't reach you. Tact-VC updates addresses between friends by itself while they're connected.
How to check it
Your current code is in Settings → Profile → Your code. Any Base32 decoder shows its bytes in the order above.
Related: What a stranger can do, Who sees your IP address.