mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-25 17:51:17 +02:00
rpcwallet: fix np2wkh inputs in remote signing
There is a one byte difference between the sigScript and the witnessScript in case of a np2wkh input. The remote signer actually needs the witness script and not the sig script to produce a valid signature.
This commit is contained in:
@@ -617,7 +617,7 @@ func (r *RPCKeyRing) ComputeInputScript(tx *wire.MsgTx,
|
||||
|
||||
// Let's give the TX to the remote instance now, so it can sign the
|
||||
// input.
|
||||
sig, err := r.remoteSign(tx, signDesc, sigScript)
|
||||
sig, err := r.remoteSign(tx, signDesc, witnessProgram)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error signing with remote instance: %v",
|
||||
err)
|
||||
|
Reference in New Issue
Block a user