multi: add p2tr keyspend wallet support

This commit is contained in:
Oliver Gugger
2022-03-18 18:37:46 +01:00
parent f130eddb92
commit c73cf03a55
24 changed files with 416 additions and 163 deletions

View File

@@ -255,6 +255,10 @@ func CraftSweepAllTx(feeRate chainfee.SatPerKWeight, blockHeight uint32,
case lnwallet.NestedWitnessPubKey:
witnessType = input.NestedWitnessKeyHash
case lnwallet.TaprootPubkey:
witnessType = input.TaprootPubKeySpend
signDesc.HashType = txscript.SigHashDefault
// All other output types we count as unknown and will fail to
// sweep.
default: