Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

docs: add custom events howto#386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tcheeric merged 1 commit intodevelopfromcodex/add-custom-events-documentation
Aug 19, 2025

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!

@tcheerictcheeric requested a review fromCopilotAugust 19, 2025 16:17
Copy link
Contributor

CopilotAI 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 orlearn 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")) {

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.
@tcheerictcheeric merged commit692a1ed intodevelopAug 19, 2025
3 checks passed
@tcheerictcheeric deleted the codex/add-custom-events-documentation branchAugust 19, 2025 18:55
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@tcheeric@codecov-commenter

[8]ページ先頭

©2009-2025 Movatter.jp