mit-dci / lit

Lightning Network node software
MIT License
551 stars 119 forks source link

Exposing inter-node messaging through API #455

Open jooray opened 5 years ago

jooray commented 5 years ago

It would be very useful to expose messaging and communication interface through an API. There are many decentralised finance applications built on top of the Lightning Network that would greatly benefit if nodes could exchange other messages than direct payment messages, for example negotiating settlements and parameters of various payment products. Since for communication all that is really needed is node pubkey, communicating using a different layer seems redundant and not very effective.

I propose creating a simple sendMessage, subscribeMessages (websocket?) with encryption and signature verification. This would greatly improve usability of lightning network besides of simple payment use-case.

Rjected commented 5 years ago

I very much agree, this would be useful for opencx as well, maybe we could increase the scope of the message bus system?