Cryptography, Cybersecurity, Cryptocurrency.
r=(v-c*x) % (curve.n) Vcheck = point_add(scalar_mult(r,curve.g),scalar_mult(c,xG)) print (f"Value to prove is {x}") print (f"\nxG= {xG}") print (f"\nv= {v}, vG={vG}") print (f"\nr= {r}, c={c}") if (vG==Vcheck): print("\nIt has been proven!!!") else: print("\nNot proven!!!") And a sample run [here]: