You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
loop/swap
Carla Kirk-Cohen c7ef4297c0
multi: update sweeping to allow different sighashes and claim scripts
Taproot spends require a different sighash, so we update our HtlcScript
interface to provide the appropriate sighash when sweeping. We also add
distinct Timeout/Success Script functions to allow for tapleaf spends
which have different locking scripts for different paths. Note that the
timeout and success paths will be the same for segwit v0 htlcs, because
it has a single branched script containing all spend paths.

In future iterations, this differentiation of claim scripts can also
be used to use musig2 to collaboratively keyspend P2TR htlcs with the
server. This script can be expressed as PriorityScript (because we'll
try to keyspend as a priority, and then fall back to a tap leaf spend).
As we've done here, segwit v0 spends would just return their single
script for PriorityScript, and the claim would be no different from
our other claims.
2 years ago
..
fees.go multi: bump btcec/v2 and btcutil to new versions 2 years ago
htlc.go multi: update sweeping to allow different sighashes and claim scripts 2 years ago
htlc_test.go multi: update sweeping to allow different sighashes and claim scripts 2 years ago
keychain.go utils: remove utils package in favor of new swap package 5 years ago
log.go multi: fix linter issues 2 years ago
tx.go multi: bump btcec/v2 and btcutil to new versions 2 years ago
type.go loop+cmd: extract types into swap module 5 years ago