Skip to content

feat: add anonymous zap support#71

Merged
barrydeen merged 1 commit intomainfrom
feat/anonymous-zaps
Feb 27, 2026
Merged

feat: add anonymous zap support#71
barrydeen merged 1 commit intomainfrom
feat/anonymous-zaps

Conversation

@barrydeen
Copy link
Copy Markdown
Owner

Summary

  • Add anonymous toggle to the zap dialog (Switch with lightning orange theming)
  • When enabled, zap requests are signed with a random throwaway keypair via Keys.generate(), hiding the sender's identity per NIP-57
  • Threads the isAnonymous flag through ZapDialog → screen callers → FeedViewModelSocialActionManagerZapSender
  • Optimistic zap uses empty pubkey for anonymous zaps so the sender's identity isn't leaked locally

Test plan

  • Open zap dialog from feed, thread, profile, and notification screens — verify anonymous toggle appears
  • Send a normal zap (toggle off) — confirm receipt shows your pubkey
  • Send an anonymous zap (toggle on) — confirm receipt shows a random pubkey, not yours
  • Verify optimistic zap display doesn't attribute anonymous zaps to your profile

Sign zap requests with a random throwaway keypair when the anonymous
toggle is enabled, so the recipient cannot identify the sender.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@barrydeen barrydeen merged commit a0ade55 into main Feb 27, 2026
@barrydeen barrydeen deleted the feat/anonymous-zaps branch March 4, 2026 01:28
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