Skip to content

Commit

Permalink
Try to use tuple for ancient sage versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jvdsn committed Dec 1, 2024
1 parent ff1b5b7 commit b78080c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion attacks/ecc/smart_attack.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Convert a field element to a p-adic number.
def _gf_to_qq(n, qq, x):
return ZZ(x) if n == 1 else qq(list(map(int, x.list())))
return ZZ(x) if n == 1 else qq(list(map(int, tuple(x))))


# Lift a point to the p-adic numbers.
Expand Down

0 comments on commit b78080c

Please sign in to comment.