feat(companion): saved servers keyed by node npub — pairing contract item 1 #106

Merged
lfg2025 merged 1 commits from feat/npub-keyed-server-entries into main 2026-07-23 20:47:53 +00:00
Owner

Closes the last REQUIRED app-side item of the npub-first pairing contract: re-scanning a node whose LAN renumbered now updates the saved server in place instead of duplicating it.

🤖 Generated with Claude Code

Closes the last REQUIRED app-side item of the npub-first pairing contract: re-scanning a node whose LAN renumbered now updates the saved server in place instead of duplicating it. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
lfg2025 added 1 commit 2026-07-23 20:47:47 +00:00
Re-scanning a node after a LAN renumber updated the FIPS peer (npub-
matched) but duplicated the saved-server entry (address-matched).
ServerEntry now carries the node's fnpub as a trailing serialization
field (legacy entries still parse) and every saved/active-entry match
goes through sameNode: npub identity first, address/port/scheme only as
the LAN-only fallback. Edit forms that don't carry the npub keep the
stored one.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
lfg2025 merged commit 08927b88a8 into main 2026-07-23 20:47:53 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lfg2025/archy#106
No description provided.