Hmm after re-reading this it is actually a somewhat genius idea. Use encrypted ephemeral events to ask a lightning node to pay an invoice. You could create a CLN plugin that connects to the damus relay, listening for encrypted ephemeral events from your key. This could be separate from your main key.

Then your nostr client only needs to send these encrypted requests to the relay. This also gets around firewall and NAT hole punching issues, since you are using the relay as a way to proxy the connection.

wow!

Reply to this note

Please Login to reply.

Discussion

Yeah but instead of using their custom integrate that only works with LND, you this would work with any node, custodial and non-custodial. All damus would have to do is scan a QRcode to connect and it would just work.

LNC, commando-over-websocket and this proposal are all quite similar (encrypted rpc over a relay). It's just that both LNC are too complex if you just want to do basic stuff like paying an invoice.

#[0]

This is a huge deal. All damus would have to do is scan a QR code and have instant access to programmatically pay lightning invoices without opening up an external wallet app. It would work for any custodial or non-custodial node without having do to any complex integrations. 🤯

Genius!

I've been thinking of building a service similar to this but uses lnurl. When the lnurl gets a request it would send a dm to the lightning node and ask for an invoicem, then serve it over the lnurl. That way it interoperates with existing infrastructure

Not sure if I follow you, but yeah I already do that for hampus@blixtwallet.com:

https://github.com/hsjoberg/lightning-box/commit/6e94da34f2bac13f39b8c4cd199da90e9dc05d55

Wonder if that would give the nerds at apple a reason to block damus everywhere?

CLNs and LNURLs and LNCs — oh my!

🦁🐯🐻

On Iris.to at least, my "L N U R L s" was transmogrified into a "Zap icon Pay with lightning" link. Oh my!

yeah, for me one of the best things is that are no networking issues anymore. the networking issue always made it hard to self-host OAuth wallet bridges to give apps permissions.

Nostr solves this. it will be easy to connect any type of wallet and apps only need to implement one single interface.

Points for using the word "ephemeral" ⚡️🤙

Ephemeral events is a set of event kinds in the nostr protocol, per NIP-16

https://github.com/nostr-protocol/nips/blob/master/16.md#ephemeral-events

how to solve a problem where someone doesn’t have a CLN but still wants the client to pay the invoice without opening a wallet

This doesn’t have anything to do with CLN, was just an example. Any other node can do something similar.

isn’t it amazing what is possible when we have open source decentralized money?? bitcoin + decentralized communication / coordination protocol (nostr) FTW!! 🙌

👀

Wow!

#[0]