Fix linters errors

This commit is contained in:
Eduard S
2020-04-14 16:47:24 +02:00
parent 14d09916cf
commit 0ac8b46493
6 changed files with 21 additions and 35 deletions

View File

@@ -154,10 +154,7 @@ func (p *Point) InSubGroup() bool {
// PointCoordSign returns the sign of the curve point coordinate. It returns
// false if the sign is positive and false if the sign is negative.
func PointCoordSign(c *big.Int) bool {
if c.Cmp(new(big.Int).Rsh(constants.Q, 1)) == 1 {
return true
}
return false
return c.Cmp(new(big.Int).Rsh(constants.Q, 1)) == 1
}
func PackPoint(ay *big.Int, sign bool) [32]byte {