Skip to content

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