Skip to content

Commit

Permalink
Try to use polynomial for ancient sage versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jvdsn committed Dec 6, 2024
1 parent b78080c commit e355aae
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, tuple(x))))
return ZZ(x) if n == 1 else qq(list(map(int, x.polynomial())))


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

0 comments on commit e355aae

Please sign in to comment.