btcec/signature: updated comment to reference constant instead of value
This commit is contained in:
parent
8965887ca4
commit
66d33037ec
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue