From b24378c6477abded144bef3e45f030d8f92253aa Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Fri, 26 Jun 2026 16:39:11 -0400 Subject: [PATCH 1/4] Experimental support for option_htlcs_claim_tx Implements the experimental `option_htlcs_claim_tx` channel type (feature bits 110/111), which builds on `option_zero_fee_commitments` to close the last on-chain pinning gap. Offered HTLC outputs become P2TR outputs whose preimage (`htlc_success`) spend path commits, via `OP_TEMPLATEHASH`, to a fixed v3 "HTLC claim transaction". - Add the `OptionHTLCsClaimTx` feature, its `ChannelTypeFeatures` accessors, channel-type negotiation, and the `negotiate_htlcs_claim_tx` config flag (depends on `negotiate_anchor_zero_fee_commitments`). - Build the offered HTLC commitment output as a P2TR when the feature applies. - The offered-HTLC `htlc_success` leaf uses the real `OP_TEMPLATEHASH` (0xce). As it pushes the computed hash, the leaf now ends with `