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

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

1 Commits

Author SHA1 Message Date
Alexander Whitestone
bdd4212845 feat: NIP-07 visitor identity in the workshop
- NIP-07 browser extension support (Alby, nos2x, etc.)
- Anonymous by default, no tracking when no extension present
- Connect Identity button appears only when window.nostr detected
- Calls window.nostr.getPublicKey() on explicit user action only
- Pubkey stored in localStorage for persistent cross-visit recognition
- Abbreviated pubkey shown in HUD top-right (first 8 + last 4 hex chars)
- Chat messages use pubkey prefix when connected (else [VISITOR])
- Disconnect button clears stored identity and reverts to anonymous
- No accounts, no passwords, no server-side tracking

Fixes #12

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 21:19:55 -04:00