lnd/input
Olaoluwa Osuntokun d15b9616b7 itest+input: add production taproot channel integration tests
This commit adds comprehensive integration test coverage for production
taproot channels to validate end-to-end functionality in realistic scenarios.
The tests verify that production taproot channels can be successfully opened,
operated, and closed using the finalized taproot specification with optimized
scripts and feature bits 80/81.

The integration tests cover channel opening with the SIMPLE_TAPROOT_FINAL
commitment type, ensuring that the complete channel lifecycle works correctly
with production taproot features. Test utilities have been enhanced to support
production taproot channel creation and validation, providing the necessary
infrastructure for comprehensive testing scenarios.

Additional unit tests have been added to the input package to validate size
calculations and witness generation for production taproot witness types.
These tests ensure that the new Final witness types produce correctly sized
witnesses and transactions, maintaining the expected efficiency benefits of
the optimized script structure.

The test coverage helps ensure that production taproot channels operate
correctly across all system components while maintaining compatibility with
existing channel types and providing confidence in the production readiness
of the implementation.
2026-04-13 12:17:56 -07:00
..
fuzz_script_is_op_return_test.go input: add new ScriptIsOpReturn helper func 2025-03-18 11:44:20 -05:00
input.go input: add production taproot HTLC succeed input constructor 2026-04-13 12:17:55 -07:00
mocks.go input+signrpc+lnwallet+multi: implement combined nonce support 2025-12-10 07:15:06 +02:00
musig2.go input+signrpc+lnwallet+multi: implement combined nonce support 2025-12-10 07:15:06 +02:00
musig2_session_manager.go input+signrpc+lnwallet+multi: implement combined nonce support 2025-12-10 07:15:06 +02:00
musig2_test.go multi: add version to MuSig2 API, bump btcd/btcec to v2.3.2 2023-02-03 18:30:10 +01:00
script_desc.go lnwallet: add Tree() method, fix formatting 2024-08-23 10:58:13 +02:00
script_utils.go input: thread script options through taproot HTLC functions 2026-04-13 12:17:56 -07:00
script_utils_legacy_test.go input: add template vs builder byte-for-byte equivalence tests 2026-03-11 19:36:09 -05:00
script_utils_template_equiv_test.go input: add template vs builder byte-for-byte equivalence tests 2026-03-11 19:36:09 -05:00
script_utils_test.go input: thread script options through taproot HTLC functions 2026-04-13 12:17:56 -07:00
signdescriptor.go contractcourt: update UTXO nursery to support taproot chans 2023-08-22 16:33:42 -07:00
signdescriptor_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
signer.go signer: fix comment about p2tr in ComputeInputScript 2022-06-29 18:28:59 +02:00
size.go input: add production taproot witness types for final channels 2026-04-13 12:17:55 -07:00
size_test.go itest+input: add production taproot channel integration tests 2026-04-13 12:17:56 -07:00
taproot.go input: switch to using new txscript.ScriptTemplate function 2026-03-10 20:32:17 -05:00
taproot_test.go input: add template vs builder byte-for-byte equivalence tests 2026-03-11 19:36:09 -05:00
test_utils.go input+wallet: extract musig2 session management into new module 2023-08-22 16:30:39 -07:00
txout.go multi: move Input interface and related code 2019-01-31 13:25:33 +01:00
txout_test.go multi: move Input interface and related code 2019-01-31 13:25:33 +01:00
witnessgen.go input: add production taproot witness types for final channels 2026-04-13 12:17:55 -07:00