Skip to content

Add search/since/until/tag filters, PoW, NIP-42 auth, and sign-only events#3

Merged
kwsantiago merged 4 commits into
mainfrom
feat/req-search-ptag
Jun 13, 2026
Merged

Add search/since/until/tag filters, PoW, NIP-42 auth, and sign-only events#3
kwsantiago merged 4 commits into
mainfrom
feat/req-search-ptag

Conversation

@kwsantiago

Copy link
Copy Markdown
Contributor

Brings noz to parity with what a relay test-suite needs (and past it on sync).

req/count filters

  • --search <text> (NIP-50), -s <since> / -u <until> time bounds, -p / -e / -d single-tag shortcuts.

event

  • --pow <bits> mines a NIP-13 nonce before signing.
  • --auth performs the NIP-42 challenge/response when a relay rejects with auth-required (re-publishes after authenticating), so NIP-70 protected events go through.
  • Reports success / rejected from the relay's OK.
  • Sign-only mode: omit the relay URL and event just signs and prints the event, for building things like a NIP-98 Authorization: Nostr <base64> header without publishing.

Verified against a live relay across protocol, auth, protected-event, PoW, NIP-86 management, and NIP-77 sync suites.

Depends on libnostr-z NIP-42 client auth (privkeyio/libnostr-z#131); pin moves to the tagged release before merge.

@kwsantiago kwsantiago merged commit 2550963 into main Jun 13, 2026
2 checks passed
@kwsantiago kwsantiago deleted the feat/req-search-ptag branch June 13, 2026 20:10
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.

1 participant