Skip to content

Conversation

@tcheeric
Copy link
Owner

Summary

  • document how to manually build and publish non-standard Nostr events

Testing

  • mvn -q verify (fails: Could not find a valid Docker environment)

https://chatgpt.com/codex/tasks/task_b_68a48d9bbdf08331a313fcb945fe393b

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@tcheeric tcheeric requested a review from Copilot August 19, 2025 16:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds documentation for creating and publishing custom Nostr events using the nostr-java library. The guide explains how to work with non-standard event kinds while adhering to the Nostr protocol specifications.

  • Adds a comprehensive how-to guide for custom Nostr events
  • Provides a practical Java code example demonstrating event creation, signing, and publishing
  • Documents the required event fields and references relevant NIPs (Nostr Improvement Proposals)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

// Required fields `id` and `sig` are populated when signing
identity.sign(event);

try (StandardWebSocketClient client = new StandardWebSocketClient("wss://relay.example.com")) {
Copy link

Copilot AI Aug 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The example uses a placeholder relay URL 'wss://relay.example.com' which is not a real relay. Consider using a well-known public relay like 'wss://relay.damus.io' or add a note that users should replace this with an actual relay URL.

Suggested change
try (StandardWebSocketClient client = new StandardWebSocketClient("wss://relay.example.com")) {
try (StandardWebSocketClient client = new StandardWebSocketClient("wss://relay.damus.io")) {

Copilot uses AI. Check for mistakes.
@tcheeric tcheeric merged commit 692a1ed into develop Aug 19, 2025
3 checks passed
@tcheeric tcheeric deleted the codex/add-custom-events-documentation branch August 19, 2025 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants