Allow non-members to publish zap receipts for members #197
2 Participants
Notifications
Due Date
No due date set.
Depends on
#198 Add support for integrated Nostr relay service
kosmos/akkounts
Reference: kosmos/akkounts#197
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/strfry_zap_receipts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Only members can publish events to our relay. But if we zap someone, we want their Lightning account server to be able to post a receipt back to our relay.
smart way of doing this!
but actually shouldn't we also check if the payer AND the recipient are kosmos members?
Thanks!
The point of this is that the recipient doesn't have to be a member. When we zap a non-member, we want their server to be able to post a receipt to our relay, as requested by our nostr clients already, so that we reliably (and quickly) see our outgoing zaps everywhere.
However, I did miss two more validation steps that would make this a tad more efficient for clients:
These help with other people sending forged receipts to our relay, but clients are already required to do these validations themselves. So it would only prevent publishing the fake to our relay, in addition to clients ignoring it.
but if I have my kosmos address configured, don't I want to also have the zaps on my events on the kosmos relay?
Ah yes, that was part of #198: https://gitea.kosmos.org/kosmos/akkounts/pulls/198/files#diff-8ddde7434958e8a4b52ba499db984d392bdb06c8
Thanks, I'll factor that in if I add more validations.