jb55 on Nostr: Hmm after re-reading this it is actually a somewhat genius idea. Use encrypted ...
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!
Published at
2023-03-21 17:19:20Event JSON
{
"id": "5131738d826f47163804549c363eefb5a13fd50e98ddb4bfc0244d6597e82bb7",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"created_at": 1679419160,
"kind": 1,
"tags": [
[
"e",
"816511d011af6ee3732c7606467823f7f48cdc752e6a56281a94ddb2c21ce593"
],
[
"e",
"dfb30bed852806f5de19ede94044ef3b771ad19f57e3407ab2a3c0d13a898e09"
]
],
"content": "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.\n\nThen 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.\n\nwow!",
"sig": "bc149b3e30b5df2f50541a6e8032eeda7b0d17fce0dbf9e6717c5fff8e2caf2b1751a3d3caa08abaf82d154d4af905e433152fe1acdd5e87aaaf5c9b3e1ff65e"
}