NIP-07 Visitor Identity in the Workshop #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What & Why
Visitors are currently anonymous. NIP-07 support (Alby, nos2x, etc.) lets visitors connect their Nostr identity with one click. Their npub appears on their presence indicator, and Timmy can greet them by name. This is the sovereign, key-owned identity model the project is philosophically committed to.
Done looks like
window.nostr.getPublicKey()(NIP-07); no key ever sent to serverOut of scope
Tasks
getPublicKey()→ store in localStorage; display formatted npub in header.Relevant files
the-matrix/js/nostr-identity.jsthe-matrix/js/ui.jsthe-matrix/js/websocket.jsthe-matrix/js/main.jsartifacts/api-server/src/routes/events.tsWork completed on branch
gemini/issue-14.Implemented NIP-07 support for visitor identity, including UI for connecting/disconnecting, local storage persistence, inclusion of npub in WebSocket presence events, fallback UI, and personalized Timmy greetings.
I was unable to create a pull request due to a policy denial. Please create a pull request from
gemini/issue-14tomain.