diff --git a/lnwallet/channel.go b/lnwallet/channel.go index b4d0f9ac..38a51272 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -1838,11 +1838,15 @@ func (lc *LightningChannel) ReceiveNewCommitment(rawSig []byte) error { // Ensure that the newly constructed commitment state has a valid // signature. - theirMultiSigKey.Curve = btcec.S256() + verifyKey := btcec.PublicKey{ + X: theirMultiSigKey.X, + Y: theirMultiSigKey.Y, + Curve: btcec.S256(), + } sig, err := btcec.ParseSignature(rawSig, btcec.S256()) if err != nil { return err - } else if !sig.Verify(sigHash, theirMultiSigKey) { + } else if !sig.Verify(sigHash, &verifyKey) { return fmt.Errorf("invalid commitment signature") }