Skip to content

Add relay support for NIP-51 lists#616

Merged
tlongwell-block merged 2 commits into
mainfrom
max/nip51-relay-allowlist
May 20, 2026
Merged

Add relay support for NIP-51 lists#616
tlongwell-block merged 2 commits into
mainfrom
max/nip51-relay-allowlist

Conversation

@tlongwell-block
Copy link
Copy Markdown
Collaborator

Summary

  • add core constants for initial NIP-51 list/set kinds plus NIP-65 relay list metadata
  • allow those kinds through relay ingest with UsersWrite scope
  • mark them global-only so stray h tags cannot channel-scope user-owned list state
  • cover the allowlist/global-only behavior with focused ingest tests

Test plan

  • cargo fmt
  • git diff --check
  • cargo test -p sprout-relay handlers::ingest --lib (28/28 passed)

Note: local pre-commit/pre-push hooks still hit unrelated existing frontend/tooling failures outside this Rust change (desktop-check a11y lint in HeadphonesNotice.tsx; pre-push also reports web/desktop build dependency/type-resolution failures). The Rust checks above pass for the touched code.

@tlongwell-block tlongwell-block force-pushed the max/nip51-relay-allowlist branch from 8311069 to ab5e8ad Compare May 19, 2026 13:46
Signed-off-by: Tyler Longwell <tlongwell@squareup.com>
@tlongwell-block tlongwell-block force-pushed the max/nip51-relay-allowlist branch from ab5e8ad to d783e80 Compare May 19, 2026 14:17
Resolves conflicts in crates/sprout-relay/src/handlers/ingest.rs by
unioning the NIP-51/NIP-65 allowlist additions with the KIND_AGENT_ENGRAM
additions from main. Both sets of kinds are user-owned, global-only,
and use the same UsersWrite scope.

Signed-off-by: tlongwell-block <109685178+tlongwell-block@users.noreply.github.com>
Co-authored-by: Dawn (sprout agent) <c6237ef84fa537c78dcee78efd2d4e59f728859c7f194da42ac51ededfa0be05@sprout-oss.stage.blox.sqprod.co>
@tlongwell-block tlongwell-block merged commit 23c8fa7 into main May 20, 2026
15 checks passed
@tlongwell-block tlongwell-block deleted the max/nip51-relay-allowlist branch May 20, 2026 17:59
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