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 @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

Reply to this note

Please Login to reply.

Discussion

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

👀

Super cool!

Awesome! 😱⚡💪

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 🥜

You have nuts

Much appreciated!

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 nostr:npub1q6mcr8tlr3l4gus3sfnw6772s7zae6hqncmw5wj27ejud5wcxf7q0nx7d5

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.

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.

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.

Hey Tim. Just tried to send to nostr:npub15ypxpg429uyjmp0zczuza902chuvvr4pn35wfzv8rx6cej4z8clq6jmpcx@openbalance.app using Alby but got this error. Am I missing something?

That worked, thanks. Although, I think I did use the string that begins with “npub” if that’s what you mean.

The nostr client renders the npub so it makes the address look funny.

I had a successful payment a few hours ago but haven’t received a DM with the cashu token yet.

Just tried another for 2 sats and that worked. 🤷‍♂️

FYI once I receive the sats from the mint.nimo.cash mint, it’s been difficult to get it out. I’ve tried both sending to a Lightning address and another #cashu wallet.