summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2fb3f7e)
This is, properly speaking, a catacomb-python bug, I think.
p, n = C.MP(pstr), C.MP(nstr)
qq.append(p**e)
nn.append(n)
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)
## One last check that this is the right answer.
xx = G.pow(g, n)