btcec/signature: updated comment to reference constant instead of value

This commit is contained in:
Julian Meyer 2018-09-20 20:24:03 -07:00
parent 8965887ca4
commit 66d33037ec

View file

@ -117,7 +117,7 @@ func parseSig(sigStr []byte, curve elliptic.Curve, der bool) (*Signature, error)
index++ index++
// siglen should be less than the entire message and greater than // siglen should be less than the entire message and greater than
// the minimal message of size 8. // the minimal message size.
if int(siglen+2) > len(sigStr) || int(siglen+2) < minSigLen { if int(siglen+2) > len(sigStr) || int(siglen+2) < minSigLen {
return nil, errors.New("malformed signature: bad length") return nil, errors.New("malformed signature: bad length")
} }