NWC wallets already listen on relays and have public keys of their own. If a user could put their wallets pubkey in their profile, couldn't we just send an event to request an invoice? This would be awesome for Alby Hub users (and the nostr:nprofile1qqsyv47lazt9h6ycp2fsw270khje5egjgsrdkrupjg27u796g7f5k0spzemhxue69uhk2er9dchxummnw3ezumrpdejz7qgwwaehxw309ahx7uewd3hkctcprdmhxue69uhkummnw3ez6vfwde3x7tnpdenkzmnf9e3k75xqss4 team 😀) because they would no longer have to be in that LNURL flow and provide the infra

I'm sure this must have been discussed already

#asknostr

nostr:nevent1qqs9s50suyt7fvzj97f8l9mzcdd6kyy7n9kepjp4pjmk2vu2hvrawucpz3mhxw309ucnydewxqhrqt338g6rsd3e9upzqs9aesyg3rvc6jws87unhl73e3rdnw83slgge87grd9d7zksplfvqvzqqqqqqyc5tjry

Reply to this note

Please Login to reply.

Discussion

Then link it to an ecash wallet so nobody has to manage their own channels unless they want to.

Yea could be something like

Bob sends Alice's wallet's pubkey a make_invoice request

Alice's wallet generates an invoice and sends an event back with the LN invoice and a tag signaling whether or not we accept cashu and which mints we trust

Bob's wallet checks if we accept cashu and if we trust the same mint, if we do it just sends the eCash. If we don't it falls back and uses the LN invoice

My wallet after a certain threshold of eCash accumulated can sweep my funds into custodial lightning

Definitely missing something 😂

You can also skip the custodial Lightning, and deposit it on-chain using Liquid.

I've already something like this a while back, with nostr you can have a LN node running in your home and control it,(ask for invoiced for eg) without having a web server. you just need a service that listens for specific nostr events and executing commands in your node.

Yea that's what nip-47 does, it's just that as it stands the make_invoice request is behind auth like all the other requests. But for this it would have to be made public. Anyone with my wallets pubkey should be able to request an invoice. Would have to build in some spam mitigation though

don't know if LN nodes have spam mitigation for normal invoice requests maybe it's a non problem

Very true