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 proper Nostr Zap Support #11

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft

Add proper Nostr Zap Support #11

wants to merge 6 commits into from

Conversation

AngusP
Copy link
Owner

@AngusP AngusP commented Apr 23, 2024

  • Adds Phoenixd webhook endpoint /phoenixd-webhook (needs phoenixd config webhook=http://localhost:8000/phoenixd-webhook)

  • Create Nostr Zap Receipt events (requires new config USER_NOSTR_PRIVATE_KEY=nsec1...)

  • Publish Zap Receipt events to relays specified in the Zap Request event in a background task

  • Add tests for new Nostr behaviour

  • Nostr support for Docker, docker-compose. README update for new config and details.

  • Don't smuggle Nostr Zap request event in the invoice description as they are often longer than the BOLT-11 maximum allowable size of 639 bytes.

  • But now that means we have to persist the zaps ourselves rather than lazily rely on phoenixd to remember them for us in invoice descriptions

@AngusP AngusP marked this pull request as draft April 25, 2024 11:12
@AngusP AngusP force-pushed the nostr-zap-support branch 2 times, most recently from 8e39080 to d7df071 Compare May 17, 2024 21:18
---

 - Adds Phoenixd webhook endpoint `/phoenixd-webhook` (needs phoenixd config `webhook=http://localhost:8000/phoenixd-webhook`)
 - Create Nostr Zap Receipt events (requires new config `USER_NOSTR_PRIVATE_KEY=nsec1...`)
 - Publish Zap Receipt events to relays specified in the Zap Request event in a background task
 - Add tests for new Nostr behaviour
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