psbt: fix typo, remove TODO

This commit is contained in:
Oliver Gugger 2022-05-02 16:25:09 +02:00
parent a86222c92d
commit a336854e27
No known key found for this signature in database
GPG key ID: 8E4256593F177720

View file

@ -2,7 +2,6 @@ package psbt
import (
"bytes"
"github.com/btcsuite/btcd/btcec/v2"
"github.com/btcsuite/btcd/btcec/v2/ecdsa"
)
@ -43,11 +42,8 @@ func validateSignature(sig []byte) bool {
return err == nil
}
// checkValid checks that both the pbukey and sig are valid. See the methods
// checkValid checks that both the pubkey and sig are valid. See the methods
// (PartialSig, validatePubkey, validateSignature) for more details.
//
// TODO(waxwing): update for Schnorr will be needed here if/when that
// activates.
func (ps *PartialSig) checkValid() bool {
return validatePubkey(ps.PubKey) && validateSignature(ps.Signature)
}