lightningdevkit / lightningdevkit.org

Lightning Development Kit Documentation
https://lightningdevkit.org
MIT License
59 stars 39 forks source link

Destination + Shutdown Scripts #101

Closed ConorOkus closed 11 months ago

ConorOkus commented 2 years ago

shutdown_script is used for our funds when negotiating a channel close and destination_script is used if LDK needs to sweep funds when the counterparty goes to the chain because if we don't they can take them after a delay.

They're stored as a part of the channel, and fetched when channel opens and stored for the duration and only used on close

ConorOkus commented 11 months ago

Covered in https://lightningdevkit.org/key_management/#spending-on-chain-funds