Skip to content

MAGMA Code to explicitly compute an endomorphism of the Jacobian of a curve y^2=x^5 + h in its associated Kummer Surface and an example on how to use one of this morphism to do primality testing in python.

License

Notifications You must be signed in to change notification settings

toorandom/kummerendomorphisms

Repository files navigation

kummerendomorphisms

MAGMA Code to explicitly compute an endomorphism of the Jacobian of a curve y^2=x^5 + h in its associated Kummer Surface and an example on how to use one of this morphism to do primality testing in python. This code can be modified (see the comments) to calculate the Kummer equivalent of any endomorphism of J.

Config: MODIFY primetestkummerexample.py variables m and h to decide which m to use when testing primality of 4m^25^n - 1 and which curve to use y^2 = x^5 + h

Run:

$ ./primetestkummerexample.py

Or try the multicpu version primetestkummerexample_multicpu.py (which was generated with an LLM by prompting it to add support to the original python example).

About

MAGMA Code to explicitly compute an endomorphism of the Jacobian of a curve y^2=x^5 + h in its associated Kummer Surface and an example on how to use one of this morphism to do primality testing in python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages