Skip to content

fix: encrypt/decrypt list title tags for private lists#56

Merged
barrydeen merged 1 commit intomainfrom
fix/private-list-names
Feb 26, 2026
Merged

fix: encrypt/decrypt list title tags for private lists#56
barrydeen merged 1 commit intomainfrom
fix/private-list-names

Conversation

@barrydeen
Copy link
Copy Markdown
Owner

Summary

  • Add title tag support to NIP-51 follow sets and bookmark sets
  • For private lists, the title is encrypted inside the content alongside member/item tags
  • For public lists, the title is included as a public tag
  • Parsing now extracts title from public tags or decrypted content, falling back to the d tag
  • Fixed a bug where creating a private list sent empty unencrypted content instead of properly encrypting

Test plan

  • Create a new private follow set — verify the name displays correctly
  • Create a new public follow set — verify the name displays correctly
  • Add/remove members from a private list — verify the name persists
  • Restart the app and verify list names load correctly from relays
  • Check lists created by other clients display readable names

Private list names were displayed as encrypted gibberish because the
human-readable name was never stored as a title tag. Now includes
["title", name] in encrypted content for private lists and in public
tags for public lists, and parses title from both locations when
reading events.
@barrydeen barrydeen merged commit 0f12166 into main Feb 26, 2026
@barrydeen barrydeen deleted the fix/private-list-names branch March 4, 2026 01:29
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