Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac sagemath#34716: fix assertion failure in _discrete_log_pgroup() …
…when group is trivial As of Sage 9.7, this causes an assertion failure: {{{#!sage sage: E = EllipticCurve(GF(487^2), [311,205]) sage: G = E.abelian_group().torsion_subgroup(42) sage: P, Q = G.torsion_subgroup(6).gens() sage: G.discrete_log(2*P + 3*Q, [P, Q]) }}} The reason is that the `p`-power part of the group generated by `P` and `Q` is trivial for some prime(s) `p` dividing the group order of `G`, which throws off `_discrete_log_pgroup()`. Easy fix. URL: https://trac.sagemath.org/34716 Reported by: lorenz Ticket author(s): Lorenz Panny Reviewer(s): Kwankyu Lee
- Loading branch information