mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2026-10-27 09:40:40 +00:00
The editor can now sign flyers via a NIP-46 remote signer: paste a bunker:// link and the user's secret stays in their signer app (nsec.app, Amber, …) while the browser holds only an ephemeral local key. The vendored nostr-tools bundle has no nip46 module, so the client is hand-rolled over a raw WebSocket — kind-24133 JSON-RPC encrypted with NIP-44 (with a NIP-04 decrypt fallback), running connect → get_public_key → sign_event. Connections are session-only; the bunker token is never written to disk, so a reload returns to anonymous. Switching to/from any other identity mode disconnects the signer, and a successful connection mirrors the user pubkey to the board's connected key. Adds 9 localized strings across all 14 languages (i18n parity test passes). Tested with a fake relay/signer doing real NIP-44 crypto: full connect → get_public_key → sign_event → publish round-trip, across all 6 engines. Full suite 312 passing. Co-Authored-By: Claude Opus 4.8 <[email protected]>