This file contains 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 multiprocessing import Process, Lock | |
from grocid.ecc import hensellift | |
NUM_THREADS = 28 # lets make some use of my 2695 ;-) | |
def smart_attack(P, Q, p, prec): | |
E = P.curve() | |
Eqq = E.change_ring(QQ) | |
Eqp = Eqq.change_ring(Qp(p, prec)) | |
P_Qp = hensellift(P, p, prec) # just normal hensel lift | |
Q_Qp = hensellift(Q, p, prec) |