Pay to NPUB (P2NPUB) Proposal
This could be an easier way to transmit funds than zapping. The payer only needs to interact with a Lightning Address provider that supports P2NPUB. #Nostr and #CASHU take care of the rest.
P2NPUB is simply:
1. The LN Address provider detects that the local part of a LN address is a valid npub.
2. The LN address provider accepts the payment on behalf of the npub
3. The LN address provider then immediately mints a Cash token of corresponding amount (minus applicable fees)
4. The LN address provider sends by DM (NIP-04) to npub
5. Npub receives DM and redeems accordingly.
Already implemented for <npub>@openbalance.app
Any LN address provider can implement now.
Finally, LN wallets can easily support - it's just Lightning Address. If just a npub, just transform into a Lightning Address that supports P2NPUB.
#P2NPUB
nostr:nevent1qqs2y04k85750e2tgdztvwwphwu8uq2cfv4na74w72avrdukfrt8elqppemhxue69uhkummn9ekx7mp0qgsr7acdvhf6we9fch94qwhpy0nza36e3tgrtkpku25ppuu80f69kfqrqsqqqqqpys00qh
BTW, this is especially slick with the #Amethyst client because you can redeem the Cashu token into your wallet.
Absolutely brilliant
Nah, just self-evident when you stare at things long enough.
Thx. I sent you some sats via P2NPUB
Yo thank you G! It auto-redeemed somehow to my ⚡address which is great.
This needs to be automatic for all npubs going forward; instantly receive zaps via DM's
If you want to try out #P2NPUB, react to this post and I will send you some sats.
nostr:nevent1qqsxe2gx26uud8mwhx3g4wypzkc60k6027t34afs9z3ug8lskp549kcpzemhxue69uhhyetvv9ujumnfd4hjucmpwd5z7q3qq6mcr8tlr3l4gus3sfnw6772s7zae6hqncmw5wj27ejud5wcxf7qxpqqqqqqzyxcyc3
I'm not sure this will work since I have Mutiny wallet fedimint LN address? Need to see it to wrap my head around it. Send p2npub nuts please!
I sent you some sats. If you are using Amethyst you should be able to redeem cashu directly to your LN address.
Sounds interesting. But how does one redeem the sats or nuts 😅 ?
If you have Amethyst and have your lightning address already set up it works.
👀
nostr:nevent1qqsxe2gx26uud8mwhx3g4wypzkc60k6027t34afs9z3ug8lskp549kcpz9mhxue69uhkummnw3ezuamfdejj7q3qq6mcr8tlr3l4gus3sfnw6772s7zae6hqncmw5wj27ejud5wcxf7qxpqqqqqqzc9wx39
Can this be implemented for zaps? Also what about just sending ecash directly if the payer has it?
Not sure. Check your DMs. You got ecash.
This is incredible. The stuff being built on top of Lightning and Nostr is insane!
I think it would be far easier have the Nostr client integrate a cashu wallet and then scan the DMs for e-cash tokens.
cashu-ts is a typescript library for building cashu wallets. very easy to use.
I don't really see the need for such a complicated setup @Tim Bouma
It’s not complicated. It just enables an npub to appear as an ordinary lightning address and receive a payment from anyone outside the #nostr ecosystem.
nostr:nevent1qqs8ycsmfancnfj7fjk326q50vf0f0qrdek4f3md8al6snkz4wh4ewcpzamhxue69uhhyetvv9ujumn0wd68ytnzv9hxgtczyqduwzspfzelx9k6x0lrez0j8cl8rtz0lxvqylk8z2ustnfy76jpzqcyqqqqqqg54rasa
Amethyst is pretty much there. It redeems to your Lightning wallet.
Would be more interesting if it didn’t rely on DMs.
Open to suggestions. Can be anything. DMs was the most expedient. Not sure how to privately message an npub otherwise.
@SUPERMAX what do you think about this, dude?
This is super dope! Works great can't wait to keep testing the limits of this
I sent you some more sats. My wallet implementation now auto-detects an entered npub and automativally figures out the Lightning address to send to.