Just some question I just had and wanted to share. Maybe someone is as intrigued by it as I am:
Could you run lightning on top of nostr?
With "run lightning on top of nostr", I mean that two lightning nodes communicate channel updates over nostr. I assume this would make running nodes at home easier since you no longer have to accept inbound connections with a static public IP address.
Since events are signed and can be encrypted, the communication channel is authenticated and can be secure, but probably not as secure as p2p connections. We would still use BOLT 8 for encrypted and authenticated transport, but nodes would send and receive these encrypted messages over nostr which might mess with some security assumptions in some spectacular way. Do you really want to share in-flight HTLCs with a relay even if they are E2EE encrypted?
Maybe running lightning on top of nostr is a dumb idea for other reasons like reliability: force closures because the relay went down? But I guess in that case the decentralized aspect of nostr should save the day and the nodes could just pick another relay but that would need to be communicated (in advance) again in some way ...
Or maybe it's totally naive to think nostr relays could handle the amount of messages that are required to operate a lightning channel without even considering the network gossip yet.
What do you think?
also shared on nostr here