Skip to content

Commit

Permalink
psbt: fix typo, remove TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
guggero committed May 2, 2022
1 parent a86222c commit a336854
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions btcutil/psbt/partialsig.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package psbt

import (
"bytes"

"github.com/btcsuite/btcd/btcec/v2"
"github.com/btcsuite/btcd/btcec/v2/ecdsa"
)
Expand Down Expand Up @@ -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)
}

0 comments on commit a336854

Please sign in to comment.