lnd/input
Olaoluwa Osuntokun 4b0139c9ba
lnwallet: update channel state machine to use new ScriptDescriptor interface
In this commit, we update the channel state machine to use the new
ScriptDescriptor interface. This fixes some subtle issues with the
existing commits, as for p2wsh we always sign the same witness script,
but for p2tr, the witness script differs depending on which branch is
taken.

With the new abstractions, we can treat p2wsh and p2tr as the same
mostly, right up until we need to obtain a control block or a tap tweak.

All tests have been updated accordingly.
2023-08-22 16:33:46 -07:00
..
input.go input: HtlcSucceedInput to support sweeping for taproot chans 2023-08-22 16:33:25 -07:00
musig2_session_manager.go input: ensure sessionOpts is properly threaded through 2023-08-22 16:31:47 -07: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
musig2.go input+wallet: extract musig2 session management into new module 2023-08-22 16:30:39 -07:00
script_desc.go input: create new ScriptDesciptor interface 2023-08-22 16:33:44 -07:00
script_utils_test.go input: add exhaustive unit tests for new taproot scripts 2023-08-22 16:30:23 -07:00
script_utils.go lnwallet: update channel state machine to use new ScriptDescriptor interface 2023-08-22 16:33:46 -07:00
signdescriptor_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
signdescriptor.go contractcourt: update UTXO nursery to support taproot chans 2023-08-22 16:33:42 -07:00
signer.go signer: fix comment about p2tr in ComputeInputScript 2022-06-29 18:28:59 +02:00
size_test.go lnwallet: update channel state machine to use new ScriptDescriptor interface 2023-08-22 16:33:46 -07:00
size.go input: add weight estimation + tests for all taproot witness gen types 2023-08-22 16:32:44 -07:00
taproot_test.go lnwallet: update channel state machine to use new ScriptDescriptor interface 2023-08-22 16:33:46 -07:00
taproot.go input: add PayToTaprootScript helper func 2023-08-22 16:29:52 -07:00
test_utils.go input+wallet: extract musig2 session management into new module 2023-08-22 16:30:39 -07:00
txout_test.go multi: move Input interface and related code 2019-01-31 13:25:33 +01:00
txout.go multi: move Input interface and related code 2019-01-31 13:25:33 +01:00
witnessgen.go input: update all taproot script spends to optionally make the ctrl block 2023-08-22 16:32:46 -07:00