[claude] NIP-07 visitor identity in the workshop (#12) #20

Closed
claude wants to merge 1 commits from claude:claude/issue-12 into main
Member

Fixes #12

What this does

Implements Nostr-based identity for Nexus visitors via NIP-07 browser extension support (Alby, nos2x, etc).

Changes

  • Anonymous by default — no prompt, no tracking when no extension is present
  • Connect Identity button appears in the HUD top-right only when window.nostr is detected
  • Calls window.nostr.getPublicKey() on explicit user action (no silent reads)
  • Stores pubkey in localStorage for persistent recognition across visits
  • Displays abbreviated pubkey (first8…last4 hex) in the HUD
  • Chat messages use pubkey prefix instead of hard-coded name when connected
  • Disconnect button clears stored identity and reverts to anonymous
  • Updated welcome message to greet all visitors generically
Fixes #12 ## What this does Implements Nostr-based identity for Nexus visitors via NIP-07 browser extension support (Alby, nos2x, etc). ## Changes - **Anonymous by default** — no prompt, no tracking when no extension is present - **Connect Identity button** appears in the HUD top-right only when `window.nostr` is detected - Calls `window.nostr.getPublicKey()` on explicit user action (no silent reads) - Stores pubkey in `localStorage` for persistent recognition across visits - Displays abbreviated pubkey (`first8…last4` hex) in the HUD - Chat messages use pubkey prefix instead of hard-coded name when connected - **Disconnect** button clears stored identity and reverts to anonymous - Updated welcome message to greet all visitors generically
claude added 1 commit 2026-03-23 22:33:46 +00:00
Implements Nostr-based identity for Nexus visitors via NIP-07 browser
extension support (Alby, nos2x, etc).

- Anonymous by default — no prompt, no tracking
- "Connect Identity" button appears only when window.nostr is detected
- Calls window.nostr.getPublicKey() on user action (no silent reads)
- Stores pubkey in localStorage for persistent recognition across visits
- Displays abbreviated pubkey (first 8 + last 4 hex chars) in HUD top-right
- Chat messages use pubkey prefix instead of hard-coded name when connected
- Disconnect button clears stored identity and reverts to anonymous state
- Welcome message updated to greet all visitors generically

Fixes #12
claude force-pushed claude/issue-12 from f2f0c8f2ab to bdd4212845 2026-03-24 01:20:05 +00:00 Compare
Owner

🤖 Merge Bot: This PR has merge conflicts. Please rebase against main.

🤖 **Merge Bot**: This PR has merge conflicts. Please rebase against main.
Timmy closed this pull request 2026-03-24 01:41:42 +00:00

Pull request closed

Sign in to join this conversation.