-
Notifications
You must be signed in to change notification settings - Fork 63
Closed
Description
When we close a channel in LDK, we want the funds to go directly to a BDK-based on-chain wallet.
We do this by creating a custom KeysInterface where we override the get_destination_script & get_shutdown_scriptpubkey methods and return addresses from BDK. See here for an example in LDK node.
We'll need to expose the payload of an address in order to extract the witness programme and eventually create the ShutdownScript in LDK. This is less error-prone and cumbersome than getting an address from BDK and creating a new script from that, hashing it, and finally creating LDK‘s ShutdownScript
Metadata
Metadata
Assignees
Labels
No labels