Skip to content

Expose the payload of an Address #319

@ConorOkus

Description

@ConorOkus

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
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions