mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-16 13:00:19 +02:00
This commit extends the taproot HTLC script generation functions to accept TaprootScriptOpt parameters, enabling callers to specify whether production or staging script variants should be generated. The SenderHTLCScriptTaproot and ReceiverHTLCScriptTaproot functions now accept a variadic opts parameter that is forwarded to the underlying script tree construction. This change provides the necessary infrastructure for the wallet and contract resolution systems to generate the appropriate script trees based on channel type. Production taproot channels can now pass the WithProdScripts() option to generate optimized scripts using OP_CHECKSIGVERIFY, while staging channels continue to use the existing development script structure. The modification maintains backward compatibility by making the opts parameter variadic with sensible defaults. Existing callers that do not specify options will continue to generate staging scripts as before, ensuring no disruption to current functionality while enabling future production script support. |
||
|---|---|---|
| .. | ||
| fuzz_script_is_op_return_test.go | ||
| input.go | ||
| mocks.go | ||
| musig2.go | ||
| musig2_session_manager.go | ||
| musig2_test.go | ||
| script_desc.go | ||
| script_utils.go | ||
| script_utils_legacy_test.go | ||
| script_utils_template_equiv_test.go | ||
| script_utils_test.go | ||
| signdescriptor.go | ||
| signdescriptor_test.go | ||
| signer.go | ||
| size.go | ||
| size_test.go | ||
| taproot.go | ||
| taproot_test.go | ||
| test_utils.go | ||
| txout.go | ||
| txout_test.go | ||
| witnessgen.go | ||