1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-22 22:25:26 +01:00
eclair/eclair-core
Fabrice Drouin db93cbeda6
Add support for taproot outputs to our "input info" class (#2895)
* Refactor tx signing (no functional changes)

* Upgrade input info class to allow spending from taproot transactions

Our InputInfo class contains a tx output and the matching redeem script, which is enough to spend segwit v0 transactions.
For taproot transactions, instead of a redeem script, we need a script tree instead, and the appropriate internal pubkey.

* Use specific segwit and taproot input info types

We now use specific subtypes for segwit inputs (which include a redeem script) and taproot inputs (which include a script tree and an internal key).
Older codecs have been modified to always return a SegwitInput.
v4 codec is modified and uses an empty redeem script as a marker to specify that a script tree is being used, which makes it compatible with the current v4 codec.

Current (v4) codecs only handle segwit inputs. Support for taproot inputs will be added to v5 codecs.

---------

Co-authored-by: Pierre-Marie Padiou <pm47@users.noreply.github.com>
2025-01-08 17:40:23 +01:00
..
src Add support for taproot outputs to our "input info" class (#2895) 2025-01-08 17:40:23 +01:00
eclair-cli Automatically disable from_future_htlc when abused (#2928) 2024-10-15 11:18:33 +02:00
pom.xml Back to dev (#2957) 2024-12-04 10:25:12 +01:00