Commit Graph
6 Commits
Author SHA1 Message Date
raucao e2785afa37 Widen the approval dialog and narrow the rest
The approval dialog set AdwDialog:content-width, which an AdwAlertDialog
ignores — it uses internal breakpoints, and a breakpoint-using AdwDialog has
no minimum size, so the dialog rendered 300px wide however large the request.
Pin it with a width-request instead (plain::alert_width), which the dialog
honours exactly.

With that working, drop the shared dialog width from 560 to 480 and shrink
the main window to 560x740 so both dialogs sit comfortably inside it.
2026-11-26 12:12:32 +04:00
raucao 13a7f74c48 Widen the main window and put the switcher, lock and menu in place 2026-11-24 20:58:38 +04:00
raucao 3c196afa0c Remove the signer page's state banner 2026-11-24 15:44:16 +04:00
raucao 2bbb6c4259 Add the NIP-46 responder and a signer page
The responder subscribes to kind:24133 events p-tagged to the device key,
decrypts (NIP-44, falling back to NIP-04), parses the request envelope by hand,
and answers NIP-44 encrypted, signed with the device key while events are signed
with the identity key.

The window is now a view switcher with a keys page and a signer page showing the
bunker:// connection string and its QR code. Every request is still answered
without asking; the UI banner says so until M4.

Adds build-aux/acceptance.sh, which covers the keyring round-trip, a nak
loopback against the responder, and the app starting the signer end to end.
2026-11-13 15:10:37 +04:00
raucao f8249c89a1 Add key storage and a keys page
KeyStore keeps one Secret Service item per key: the identity key (the nsec,
used only for signing) and a generated device key used for NIP-46 transport,
so the transport key can be rotated without touching the identity.

Includes NIP-49 export/import, zeroizing of in-memory copies, the tokio/main-loop
bridge that the relay work will reuse, and an ignored test that round-trips
everything against a real Secret Service.
2026-11-13 14:47:59 +04:00
raucao c864abc5cd Add application skeleton
Window, GSettings-backed config, Blueprint UI in a GResource, and the
packaging metadata (desktop entry, AppStream metainfo, schema, icons).

Built with gtk4-rs and libadwaita against the host toolchain; Meson drives
cargo and installs the GResource under $datadir/org.kosmos.raucao.Regent.
2026-11-13 14:22:57 +04:00