Skip to content

Use TlvStream for encrypted channel backup#260

Merged
t-bast merged 2 commits intomasterfrom
channel-data-tlv-stream
Apr 26, 2021
Merged

Use TlvStream for encrypted channel backup#260
t-bast merged 2 commits intomasterfrom
channel-data-tlv-stream

Conversation

@t-bast
Copy link
Copy Markdown
Member

@t-bast t-bast commented Apr 23, 2021

In order to support extensions to standard LN messages, we must put our custom fields in a TlvStream.
The only field that didn't respect that was the encrypted channel backup.
This change is a required preliminary step to be able to implement lightning/bolts#847

We also fix a bug where we didn't send our backup in shutdown messages.

In order to support extensions to standard LN messages, we must put our
custom fields in a TlvStream. The only field that didn't respect that was
the encrypted channel backup.

We also fix a bug where we didn't send our backup in `shutdown` messages.
@t-bast t-bast requested review from pm47 and sstone April 23, 2021 10:49
Copy link
Copy Markdown
Member

@sstone sstone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a nit

Comment thread src/commonTest/kotlin/fr/acinq/lightning/wire/LightningCodecsTestsCommon.kt Outdated
@t-bast t-bast merged commit a852f1d into master Apr 26, 2021
@t-bast t-bast deleted the channel-data-tlv-stream branch April 26, 2021 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants