Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add P and a tag support on nostr zaps #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Sebastix
Copy link

This PR adds support for the added P and a tag on zap events in NIP-57.

The validation of a tag is still a TODO (I'm looking for existing snippet on validating that value from other JavaScript build Nostr projects).

Sebastix added 2 commits May 30, 2024 12:18
…zapNote

P = pubkey from the zap sender
a = is an optional event coordinate that allows tipping parameterized replaceable events such as NIP-23 long-form notes
See https://github.com/nostr-protocol/nips/blob/master/57.md#appendix-e-zap-receipt-event
@Sebastix Sebastix changed the title Update nostr zaps nip57 Add P and a tag support on nostr zaps May 30, 2024
@Sebastix
Copy link
Author

Tagging you @Dolu89 here for the visibility

@Dolu89
Copy link
Owner

Dolu89 commented Jun 4, 2024

Tagging you @Dolu89 here for the visibility

Hey, thanks for your PR. Maybe you should push your PR to @mutatrum's fork. He now has a more maintained branch than me.

Also, @mutatrum could be the new owner of this repo? (after merging his branch into my branch)

@Sebastix
Copy link
Author

Sebastix commented Jun 4, 2024

Sure.

@mutatrum Let us know your thoughts on this 👍

@mutatrum
Copy link
Contributor

mutatrum commented Jun 9, 2024

I merged it into my fork, I'm 'testing' it now in production.

@Sebastix
Copy link
Author

@mutatrum How's the testing going :)

@mutatrum
Copy link
Contributor

Looks fine to me, nothing broke. But not sure how to test the effect of these new tags?

@Sebastix
Copy link
Author

@mutatrum Kieren, developer of Snort and Zap.stream pointed out this to me as that zap.stream uses theP to index the zap events by that tag (pubkey).
The zaps functionality did not show up on my livestream on zap.stream, as the events created on my side with Ligess did not contain a P tag.

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.

3 participants