|
|
@ -135,11 +135,12 @@ func (s *Signer) AddPartialSignature(packet *psbt.Packet,
|
|
|
|
// Now we add our partial signature.
|
|
|
|
// Now we add our partial signature.
|
|
|
|
prevOutFetcher := wallet.PsbtPrevOutputFetcher(packet)
|
|
|
|
prevOutFetcher := wallet.PsbtPrevOutputFetcher(packet)
|
|
|
|
signDesc := &input.SignDescriptor{
|
|
|
|
signDesc := &input.SignDescriptor{
|
|
|
|
KeyDesc: keyDesc,
|
|
|
|
KeyDesc: keyDesc,
|
|
|
|
WitnessScript: witnessScript,
|
|
|
|
WitnessScript: witnessScript,
|
|
|
|
Output: utxo,
|
|
|
|
Output: utxo,
|
|
|
|
InputIndex: inputIndex,
|
|
|
|
InputIndex: inputIndex,
|
|
|
|
HashType: txscript.SigHashAll,
|
|
|
|
HashType: txscript.SigHashAll,
|
|
|
|
|
|
|
|
PrevOutputFetcher: prevOutFetcher,
|
|
|
|
SigHashes: txscript.NewTxSigHashes(
|
|
|
|
SigHashes: txscript.NewTxSigHashes(
|
|
|
|
packet.UnsignedTx, prevOutFetcher,
|
|
|
|
packet.UnsignedTx, prevOutFetcher,
|
|
|
|
),
|
|
|
|
),
|
|
|
|