lnwallet: add extra sanity check in VerifyCommitSig

This commit is contained in:
Olaoluwa Osuntokun 2023-07-25 17:10:53 -07:00
parent 410baae0c7
commit 638516879f
No known key found for this signature in database
GPG Key ID: 3BBD59E99B280306

View File

@ -436,6 +436,10 @@ func (m *MusigSession) VerifyCommitSig(commitTx *wire.MsgTx,
optFunc(opts)
}
if sig == nil {
return nil, fmt.Errorf("sig not provided")
}
// Before we can verify the signature, we'll need to finalize the
// session by binding the remote party's provided signing nonce.
if err := m.FinalizeSession(musig2.Nonces{