From: Mark Wooding Date: Sun, 28 May 2017 18:03:08 +0000 (+0100) Subject: rhodes: Don't try to CRT-recombine a single log. X-Git-Url: https://git.distorted.org.uk/~mdw/rhodes/commitdiff_plain/b93ad432a05ead513aae2691dc45885202bb54ed?hp=2fb3f7e2bf2c444707ce5a81f0b54260d240f4bf rhodes: Don't try to CRT-recombine a single log. This is, properly speaking, a catacomb-python bug, I think. --- diff --git a/rhodes b/rhodes index 092e97a..8152999 100755 --- a/rhodes +++ b/rhodes @@ -490,7 +490,8 @@ def step(dir, cmd, *args): p, n = C.MP(pstr), C.MP(nstr) qq.append(p**e) nn.append(n) - n = C.MPCRT(qq).solve(nn) + if len(qq) == 1: n = nn[0] + else: n = C.MPCRT(qq).solve(nn) ## One last check that this is the right answer. xx = G.pow(g, n)