Adds the signevent capability from nostr-protocol/nips#2389: a relay admin can
ask the relay to sign an unsigned event template with the relay's own (self) key
and get back the full signed event. Useful for minting NIP-43 relay-level role
events on behalf of the relay.
- ManagementStore.SignEvent signs the template via Config.Sign (relay self key).
- Wired to instance.Relay.ManagementAPI.SignEvent; admin-gated by the existing
OnAPICall middleware, and auto-advertised via supportedmethods.
- Bumps the nostrlib replace to the signevent branch which adds the nip86 decode
case + khatru dispatch hook.
NOTE: go.sum still needs `go mod tidy` to record the new nostrlib pseudo-version
hash (no Go toolchain was available in this environment to run it). Not built or
tested here.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BsMjvv7krpZeHK1Njeneru