[verified] feat(tui): drop unicode QR, share onionwire:v1 invite
Some checks failed
ci / test (push) Has been cancelled

F2 shows the invite string with fp/onion hints instead of a terminal QR.
Keep encode/decode and F3 paste; drop the qrcode crate.
This commit is contained in:
Sirius DevOps 2026-09-10 16:53:03 -04:00
commit 4fb47444d5
No known key found for this signature in database
9 changed files with 64 additions and 55 deletions

View file

@ -1,7 +1,7 @@
# OnionWire
Lean Tor messenger: one Rust process (ratatui + Noise IK + sqlite + in-process Arti).
Two people scan a QR, then chat. No hosted server. Identity is a public key; the onion is only a locator.
Two people share an invite string, then chat. No hosted server. Identity is a public key; the onion is only a locator.
You do **not** install a `tor` daemon, `torrc`, Prosody, or XMPP. OnionWire embeds Arti and publishes its own v3 onion.
@ -110,7 +110,7 @@ On start you should see `onionwire: bootstrapping Arti…` on stderr. Directory
## Friends are keys
A friend is an ed25519 pubkey (`UNIQUE(pubkey)`). The `.onion` on that row is only where they are reachable right now. Re-scanning the same `k` updates the locator; it never creates a second person.
A friend is an ed25519 pubkey (`UNIQUE(pubkey)`). The `.onion` on that row is only where they are reachable right now. Pasting the same `k` updates the locator; it never creates a second person.
## Keys (TUI)
@ -123,7 +123,7 @@ Focus starts on the composer so typing works immediately. `Tab` cycles panes; `j
| `j` `k` / `↑` `↓` | Move or scroll the focused pane |
| `g` / `G` | Jump to top / bottom of the focused pane |
| `?` | Keybinding help (`Esc` closes) |
| `F2` | Share: terminal QR + payload |
| `F2` | Share: invite string (`onionwire:v1:…`) |
| `F3` | Paste a friend’s payload |
| `F4` | Rotate **onion** (locator only) |
| `F5` | Selected friend’s profile (`/who`) |
@ -131,13 +131,13 @@ Focus starts on the composer so typing works immediately. `Tab` cycles panes; `j
| `Esc` | Close overlay / back to Main / clear composer |
| `Ctrl-Q` | Quit |
## F2 QR
## F2 invite
`F2` shows a terminal QR and the payload:
`F2` shows the invite string (mouse-select to copy):
`onionwire:v1:k=…:o=…:spk=…:sig=…`
`F3` pastes a payload. Unknown `k` asks for approval. Same `k` already in the roster updates `onion` only.
Give that string to a friend. `F3` pastes it. Unknown `k` asks for approval. Same `k` already in the roster updates `onion` only.
## F4 rotate onion
@ -146,7 +146,7 @@ Focus starts on the composer so typing works immediately. `Tab` cycles panes; `j
- Your identity fingerprint stays the same.
- A new onion is published; the old one is hard-cut (no dual-host grace).
- Online friends get a signed `loc` frame.
- Offline friends cannot find you until they rescan the new QR. There is no directory.
- Offline friends cannot find you until they F3-paste the new invite. There is no directory.
## Fail closed
@ -259,7 +259,7 @@ Do not run `cargo publish`; `publish = false`. CI needs the repo secret
| `onionwire: unknown argument` | No subcommands. Flags are `--version` / `--help` only, then the TUI. |
| Blank / broken TUI | Run in a real terminal emulator, not `nohup` / systemd without a TTY. |
| Two chats, same laptop | Separate `ONIONWIRE_HOME` per process. |
| Friend cannot find you after F4 | Expected if they were offline. They must F3-paste the new QR. Same `k` updates the row. |
| Friend cannot find you after F4 | Expected if they were offline. They must F3-paste the new invite. Same `k` updates the row. |
## Not in v1