Oddbean new post about | logout
 I was able to receive those nuts. 
 success! nice 2 know 
 
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'd like to try! 
 You got sats! 
 Excellent experience! 
 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. 
 Super cool! 
 👀
nostr:nevent1qqsxe2gx26uud8mwhx3g4wypzkc60k6027t34afs9z3ug8lskp549kcpz9mhxue69uhkummnw3ezuamfdejj7q3qq6mcr8tlr3l4gus3sfnw6772s7zae6hqncmw5wj27ejud5wcxf7qxpqqqqqqzc9wx39 
 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 @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. 
 Hey Tim. Just tried to send to  @thebullishbitcoiner@openbalance.app using Alby but got this error. Am I missing something? https://image.nostr.build/59498e0eba7b35aec1eb9b58117dd86c8c061e26a9605ad69bd7952333093a2f.jpg  
 Just the raw npub 

nostr:nprofile1qqs2zqnq524z7zfdsh3vpwpwjh4vt7xxp6sec68y3xr3ndvve23ru0spr4mhxue69uhkummnw3ezumt4w35ku7thv9kxcet59e3k7mf0qyvhwumn8ghj7un9d3shjtnndehhyapwwdhkx6tpdshsz8rhwden5te0dehhxarj9e3xjarrda5kuetj9eek7cmfv9kq8lmctc@openbalqnce.app

I just sent you a few sats
 
 That worked, thanks. Although, I think I did use the string that begins with “npub” if that’s what you mean. https://image.nostr.build/558f32959246612bfcb61345f753e3de762d1fcf501d3504f0f56f496bce3f96.jpg  
 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. https://image.nostr.build/e7080306e9f817e73dbee2984534a705fc549f0825a6f28cf4002b3211f6c684.jpg  
 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. https://image.nostr.build/13b36b7888bfe3ef9ef4aaa03a0995a1c9eda65f336d1b2f9ad45b0dfa03508e.jpg