Implement Nostr WebSocket relay publishing #129
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?
Summary
The Nostr service plugin (
plg_mokosuitecross_nostr) is an explicit stub. Thepublish()method returns a failure with "Nostr WebSocket relay publishing is not yet implemented."File:
source/packages/plg_mokosuitecross_nostr/src/Extension/NostrService.phpWhat's needed
Nostr uses the NIP-01 protocol which requires:
["EVENT", event]["OK", event_id, true/false, message]from the relayChallenges
textalk/websocketor implement raw socketext-secp256k1or a pure-PHP implementationCurrent credential fields
Check the service form XML for which credential fields are defined (likely
private_keyandrelay_urls).Acceptance Criteria
publish()creates a valid NIP-01 kind-1 eventvalidateCredentials()verifies the private key format and relay connectivityplatform_post_id