Direct Message draft



Summary:

Rene approached Rusty Russell seeking advice on how to prevent message spam in the lightning network. Rusty suggested using unreliable messages that forget across restarts and have a limit of 1000 total remembered forwards with random drop. The protocol does not include a method for errors. Rusty had implemented this proposal and even uploaded a patch on GitHub. To facilitate messaging over lightning, Rusty grouped messages into five logical groups. Routing (types `256`-`511`) contains node and channel announcements, as well as any active route exploration or forwarding. Rene asked if Rusty's suggestion could create a fee-free rebalancing protocol and the ability to communicate with nodes beyond peers. Rusty explained that directed messages allow peers to query invoices via existing connections. These messages are not associated with a particular local channel but use Bolt 4 protocol for end-to-end encryption and are unreliable. Each message has an optional reply that is onion-encoded just like HTLC errors.The email thread also discussed the reasonable timeout of HTLC and its subsequent forgetting if not replied. Additionally, the email included a reference to RFC 1950 "ZLIB Compressed Data Format Specification version 3.3". The Lightning-dev mailing list was where this thread was posted.


Updated on: 2023-06-02T23:47:19.515466+00:00