mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
49f9f496fb
This commit modifies the current implementation of the p2p crypto protocol to further constrain the max allowed payload size. With this change we now use 16-bits (2-bytes) for the maximum payload length. This change puts us closer to strict adherence of the Noise spec, and simplifies the memory management w.r.t implementing the current version of our scheme. Note that this doesn’t restrict the size of messages that are able to be sent over the wire within the LN p2p protocol. Larger message can safely be encapsulated within the crypt messages via fragmentation that will detected take place if a larger message is detected. |
||
---|---|---|
.. | ||
conn.go | ||
listener.go | ||
noise_test.go | ||
noise.go |