Skip to content

sdk(local_relay): support event kind blacklisting - #1401

Merged
yukibtc merged 1 commit into
nostrdevkit:masterfrom
TheAwiteb:reject-kind-13-seal-events
Jul 27, 2026
Merged

sdk(local_relay): support event kind blacklisting#1401
yukibtc merged 1 commit into
nostrdevkit:masterfrom
TheAwiteb:reject-kind-13-seal-events

Conversation

@TheAwiteb

Copy link
Copy Markdown
Member

Blacklist the following kinds:

  • Kind::Seal (only valid inside gift-wrap events)
  • Kind::ZapRequest (sent directly to the LNURL callback server)
  • Kind::Authentication (carried exclusively in AUTH frames)
  • Kind::BlossomAuth (HTTP Authorization header artifact)
  • Kind::HttpAuth (HTTP Authorization header artifact)

The user can blacklist kinds using LocalRelayBuilder::blacklist_kinds

Refs: nostr-protocol/nips#2399

Notes to the reviewers

is prefixing the change log with local_relay: right?

Checklist

@TheAwiteb
TheAwiteb requested a review from yukibtc as a code owner July 27, 2026 10:09
@TheAwiteb
TheAwiteb force-pushed the reject-kind-13-seal-events branch from e580a4a to 22ea506 Compare July 27, 2026 10:09
@TheAwiteb
TheAwiteb marked this pull request as draft July 27, 2026 10:10
@TheAwiteb

Copy link
Copy Markdown
Member Author

I forget to test it, let me add the tests

@codecov

codecov Bot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@TheAwiteb
TheAwiteb force-pushed the reject-kind-13-seal-events branch from 22ea506 to db7e47a Compare July 27, 2026 10:31
Blacklist the following kinds:
- `Kind::Seal` (only valid inside gift-wrap events)
- `Kind::ZapRequest` (sent directly to the LNURL callback server)
- `Kind::Authentication` (carried exclusively in AUTH frames)
- `Kind::BlossomAuth` (HTTP Authorization header artifact)
- `Kind::HttpAuth` (HTTP Authorization header artifact)

The user can blacklist kinds using `LocalRelayBuilder::blacklist_kinds`

Refs: nostr-protocol/nips#2399
Signed-off-by: Awiteb <a@4rs.nl>
@TheAwiteb
TheAwiteb force-pushed the reject-kind-13-seal-events branch from db7e47a to 938264f Compare July 27, 2026 10:34
@TheAwiteb
TheAwiteb marked this pull request as ready for review July 27, 2026 10:38

@yukibtc yukibtc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

utACK 938264f

@yukibtc
yukibtc merged commit 938264f into nostrdevkit:master Jul 27, 2026
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants