Using libp2p as a communication protocol for Lightning



Summary:

Bastien Teinturier and Matt have commented on the limitations of libp2p in terms of security. While libp2p is a versatile tool for peer-to-peer networking, it can be insecure due to offering too many options, similar to how TLS is vulnerable to downgrade attacks. To address this, protocols such as Wireguard have simplified their codebase to make auditing easier. For Lightning, they prefer a simple transport with no configuration options, which makes implementation and testing more straightforward. During the Milan meeting, they chose a raw protocol instead of using protobufs, which allowed them to specify each message down to the bit level, eliminating issues at that level. However, this choice led to debates over endianness, causing some wasted time.


Updated on: 2023-06-02T23:44:47.663340+00:00