picoclaw/pkg/channels/buzz
PeterChrz 23765f756f
fix(buzz): wait for NIP-42 challenge before calling Auth()
The go-nostr RelayConnect returns immediately after the WebSocket
handshake, but the relay has not yet sent the AUTH challenge. Calling
relay.Auth() right away signs the auth event with an empty challenge
tag, which the Buzz relay rejects permanently ('verification failed'
then 'authentication already failed' on retries).

Add a 2s sleep between RelayConnect and Auth() to give the background
read loop time to receive and store the challenge. The relay typically
delivers it within a few hundred milliseconds.
2026-08-11 21:59:20 -04:00
..
buzz.go fix(buzz): wait for NIP-42 challenge before calling Auth() 2026-08-11 21:59:20 -04:00
buzz_test.go feat(channels): add Buzz (Nostr relay) channel 2026-08-11 21:41:16 -04:00
handler.go feat(channels): add Buzz (Nostr relay) channel 2026-08-11 21:41:16 -04:00
init.go feat(channels): add Buzz (Nostr relay) channel 2026-08-11 21:41:16 -04:00