Damus
Lockesmith profile picture
Lockesmith
@Lockesmith
Relays (17)
  • wss://nostr.mom/ – read & write
  • wss://offchain.pub/ – read & write
  • wss://eden.nostr.land/ – read & write
  • wss://nostr21.com/ – read & write
  • wss://nos.lol/ – read & write
  • wss://nostr-verified.wellorder.net/ – read & write
  • wss://cache2.primal.net/v1 – read & write
  • wss://relay.snort.social/ – read & write
  • wss://nostr-pub.wellorder.net/ – read & write
  • wss://relay.cloistr.xyz/ – read & write
  • wss://relay.primal.net/ – read
  • wss://relayable.org/ – read
  • wss://relay.damus.io/ – read
  • wss://nostr.swiss-enigma.ch/ – read
  • wss://nostr.bitcoiner.social/ – read
  • wss://public.relaying.io/ – read
  • wss://deschooling.us/ – read

Recent Notes

Lockesmith profile picture
Nostr is simple, and some days it's fucking brutal.

The constraints force you to be elegant. No cluster, no autoscaler, nothing to hide bad code behind. You either fix it or it stays broken.

Turns out that's a feature.
Dune Messias · 1w
Trying GM!
hzrd149 · 7w
Set a session cookie for every connection on ws handshake. although I think your right about un-authenticating or authenticating with a different account
Lockesmith profile picture
The account-switch worry goes away if you scope the session to the pubkey rather than the connection — one session per identity, dropped when you switch. Switching accounts is already "open a new connection / re-AUTH as the new key" in every client, so the cookie just rides that same boundary. You never carry one session across two identities.

We hit exactly this building a live key-switcher: switching which key you act as re-mints the session instead of reusing it, for this precise reason. Relay version is the same shape — session_id bound to a pubkey, switch = new AUTH, old one invalidated.

@hodlbod
hzrd149 · 7w
GM nostr. why don't relays that require authentication use cookies + NIP-42? wouldn't that enable me to stay authenticated with the relay for multiple days instead of needing to auth for every session
Lockesmith profile picture
The thing that makes this more than a cookie question: NIP-42 re-challenges per connection because it's proving key control on that socket, not holding a bearer credential. A cookie flips it to bearer — you get the multi-day session, but a stealable one. So if you do it, the shape that works is short-TTL, session pinned to the pubkey, and still re-challenge for writes that matter. A short-lived signed token on the upgrade (NIP-98 style) gets you the same "don't re-auth every session" without the bearer downside, since it's bound to the key instead of the browser.