Cryptography, Cybersecurity, Cryptocurrency.
random.randint(0, curve.n-1) # Alice generates xG = scalar_mult(x, curve.g) print ("Let's prove that Alice knows x_1 with Fiat Shamir\n") chal=str(curve.g)+str(x)+str(xG) h=hashlib.md5() h.update(chal.encode()) v= random.randint(0, curve.n-1) vG = scalar_mult(v, curve.g) c=int(h.hexdigest(),16)