Support signing to_remote anchors variant for StaticPaymentOutput
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Mon, 25 Sep 2023 23:55:22 +0000 (16:55 -0700)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Fri, 29 Sep 2023 20:46:59 +0000 (13:46 -0700)
commitfa2a2efef47b5da48ac7a239f3d8a835a7f28164
treeb3bc97f081504ca4bde55962c41f17de309e5620
parent33b745f54e7d3ed7b34c40f27e9b2945f50b5d87
Support signing to_remote anchors variant for StaticPaymentOutput

`to_remote` outputs on commitment transactions with anchor outputs have
an additional `1 CSV` constraint on its spending condition,
transitioning away from the previous P2WPKH script to a P2WSH.

Since our `ChannelMonitor` was never updated to track the proper
`to_remote` script on anchor outputs channels, we also missed updating
our signer to handle the new script changes.
lightning/src/chain/channelmonitor.rs
lightning/src/ln/chan_utils.rs
lightning/src/sign/mod.rs