Skip to content

Commit

Permalink
Update math_utils.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh0g0-1758 committed Jul 3, 2024
1 parent f1cb6de commit 69cf852
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/hintrunner/utils/math_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,7 @@ func IsQuadResidue(x *fp.Element) bool {
// https://github.com/sympy/sympy/blob/d91b8ad6d36a59a879cc70e5f4b379da5fdd46ce/sympy/ntheory/residue_ntheory.py#L689
// We have omitted the prime as it will be CAIRO_PRIME

if x.IsZero() || x.IsOne() || x.Legendre() == 1 {
return true
} else {
return false
}
return x.IsZero() || x.IsOne() || x.Legendre() == 1
}

func YSquaredFromX(x, beta, fieldPrime *big.Int) *big.Int {
Expand Down

0 comments on commit 69cf852

Please sign in to comment.