Sending onion_message
using HTLCs
#1196
Replies: 3 comments
-
Apparently this idea is not new😂 |
Beta Was this translation helpful? Give feedback.
-
[citation needed]
This wastes like three orders of magnitude more resources. No. |
Beta Was this translation helpful? Give feedback.
-
Agreed with Matt here, this was already raised a few times in the past, and is IMO a bad idea. Onion messages are very cheap to process, it's trivial to restrict them to pairs of nodes that have a channel and rate-limit them, and we have a very simple proposal for statistically limiting spam: https://lists.linuxfoundation.org/pipermail/lightning-dev/2022-June/003623.html |
Beta Was this translation helpful? Give feedback.
-
Not sure if this has been discussed elsewhere, while
onion_message
is cool as it enables BOLT12 invoice, it treats every node in the network as a "free" resource when it comes to forwarding OMs, hence opening a new DoS attack vector. Instead of allowing any node to send an OM, we should restrict it from being sent over a connection that has a channel open. Moreover, thisonion_message
should be sent using HTLCs to pay the forwarding nodes via fees.This means the BOLT12 now has the following workflow,
The HTLC amount can be very small, i.e., only enough sats to pay the routing fees. The disk size of this HTLC will be larger, but forwarding nodes can quickly remove the OM once done. By using HTLCs to forward OMs there are several advantages,
The downside,
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions