This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sage.all_cmdline import * | |
| def curve_fx(e: EllipticCurve): | |
| a4 = e.a4() | |
| a6 = e.a6() | |
| X,Y=e.multiplication_by_m(1) | |
| return X**3 + a4*X + a6 | |
| def trace_mod_2(e: EllipticCurve): | |
| (X,Y) = e.multiplication_by_m(1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sage.all_cmdline import * | |
| Fq=GF(11) | |
| E=EllipticCurve(Fq, [3,7]) | |
| G0=(E.gens()[0]) | |
| R = PolynomialRing(Fq, 'X,Y'); R.inject_variables() | |
| def normalize_rational_map(rational_map, curve : EllipticCurve): | |
| def reduce_y2(poly, fx): | |
| xterms = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias n next ;; list | |
| alias c continue ;; list | |
| alias s step ;; list | |
| alias finish up ;; list | |
| alias f up ;; list | |
| alias fini up ;; list | |
| alias d down ;; list | |
| alias u until ;; list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def normalize(polyList, fx): | |
| const_term = 0 | |
| y_term = 0 | |
| for i, v in enumerate(polyList): | |
| xterm = polyList[i] | |
| if i % 2 == 0: | |
| expo = int(i/2) | |
| const_term = const_term + xterm * (fx ^ expo) | |
| else: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Keybase proof | |
| I hereby claim: | |
| * I am axelexic on github. | |
| * I am yogeshswami (https://keybase.io/yogeshswami) on keybase. | |
| * I have a public key whose fingerprint is 50DE 2256 43D7 ADC8 BECB A227 A8C3 5CDF 033B EE05 | |
| To claim this, I am signing this object: |