Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore Fragmented LN Messages for DLC messaging #96

Open
nkohen opened this issue Sep 24, 2020 · 0 comments
Open

Explore Fragmented LN Messages for DLC messaging #96

nkohen opened this issue Sep 24, 2020 · 0 comments

Comments

@nkohen
Copy link
Contributor

nkohen commented Sep 24, 2020

I spoke with Matt Corallo and he suggested that if we want to be compatible with the LN P2P layer we should fragment our large messages (all DLC messages (except sometimes dlc_offer) are too large in the case of a large number of outcomes) before sending them over the wire.

This shouldn't lead to a DoS attack vector as the process of reading messages can be pipelined, e.g. accept and sign message signatures don't all need to be in memory at once, rather they can be read, validated, and stored to disk independent of each other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants