Commitment Transaction Format Update Proposals?



Summary:

The Lightning Network developers are considering a number of changes to the commitment transaction format. The proposed changes include using an OP_TRUE-style output to allow CPFP, making the `remotepubkey` a BIP-32-style to avoid the option_data_loss_protect problem and making the CLTV timeout symmetrical to avoid trying to game the peer into closing. These changes will be combined into a single `commitment_style2` feature instead of having a testing matrix of all these disabled and enabled. As per the new update, if `commitment_style2` is negotiated, update_fee is a protocol error. Additionally, it is specified that the feerate for commitment transactions will always be 253 satoshi/Sipa, and that the commitment tx will always have a P2WSH OP_TRUE output of 1000 satoshi. The fees and OP_TRUE are always paid by the initial funder unless they don’t have funds, and HTLC-timeout and HTLC-success txs sigs are SIGHASH_ANYONECANPAY|SIGHASH_SINGLE, so you can bring your own fees. The `localpubkey`, `remotepubkey`, `local_htlcpubkey`, `remote_htlcpubkey`, `local_delayedpubkey`, and `remote_delayedpubkey` derivation now uses a two-stage unhardened BIP-32 derivation based on the commitment number. It is suggested to restrict the change to only what's necessary to simplify the backup+recovery workflow with the current commitment design, by modifying the derivation for local+remote pubkey (so the direct "settle" keys). Finally, `to_self_delay` for both sides is the maximum of either the open_channel or accept_channel, and `to_remote` is now a P2WSH of: `to_self_delay` OP_CSV OP_DROP OP_CHECKSIG.


Updated on: 2023-05-20T08:57:50.919612+00:00