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

Capability to use Npub as target for split payments #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pfoytik
Copy link

@pfoytik pfoytik commented Sep 29, 2023

Added the ability to use Nostr Npubs as targets for Split Payments in response to #5

I used existing libraries to processes websocket requests to relay:
wss://nostr-pub.wellorder.net

Now users can specify the nostr npub as the Target
image

The split payments will query the relay for the Npub and attempt to receive a lud16 address.

When payment is made to the host wallet the split payments accepts the sats and then splits based on percentages allocated:
image

TODO:

  • add ability for user to change relay
  • finish testing and adding conditional for lud06 when lud16 is not available

@dni dni requested review from dni and talvasconcelos September 30, 2023 10:59
@dni
Copy link
Member

dni commented Sep 30, 2023

i'm thinking about utilizing https://github.com/lnbits/nostrclient it would manage the relais and everything.

@pfoytik
Copy link
Author

pfoytik commented Sep 30, 2023

That is pretty clean, so if you are running the lnbits nostrclient you can reference its functionality from split payments?

@callebtc
Copy link
Collaborator

callebtc commented Oct 1, 2023

That is pretty clean, so if you are running the lnbits nostrclient you can reference its functionality from split payments?

Yes, absolutely! That's the intention of nostrclient!

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