loop/swap
Carla Kirk-Cohen 638973dce2
swap: add locking conditions to HtlcScript interface
Use of the Script() function is problematic when we introduce taproot
because our script will vary depending whether we use keyspend or a
tapleaf spend path (and on the tapleaf spent). This has not previously
been a problem for segwitv0 scripts, because they contain all of the
logical branches for each of our spend conditions in a single script.

This commit prepares for removal of the Script() function by moving
our address/pkScript/sigScript generation (which need Script()) into
each script's implementation of the HtlcScript interface so that
they have access to the script directly.
2022-06-09 10:20:13 +02:00
..
fees.go multi: bump btcec/v2 and btcutil to new versions 2022-03-25 11:00:16 +01:00
htlc.go swap: add locking conditions to HtlcScript interface 2022-06-09 10:20:13 +02:00
htlc_test.go multi: fix linter issues 2022-05-20 10:16:46 +02:00
keychain.go utils: remove utils package in favor of new swap package 2019-03-06 20:34:00 -08:00
log.go multi: fix linter issues 2022-05-20 10:16:46 +02:00
tx.go multi: bump btcec/v2 and btcutil to new versions 2022-03-25 11:00:16 +01:00
type.go loop+cmd: extract types into swap module 2019-10-09 16:14:06 +02:00