Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Apparently, xP and xQ are coordinates of point on an elliptic curve over a finite field $\textrm{GF}(p)$. In this case they represent residues modulo $p$, and operation % is not defined for them. If one wants to treat them as integers, a conversion is needed: uu = int(xQ) % int(xP)

Apparently, xP and xQ are coordinates of point some points on an elliptic curve over a finite field $\textrm{GF}(p)$. In this case they represent residues modulo $p$, and operation % is not defined for them. If one wants to treat them as integers, a conversion is needed: uu = int(xQ) % int(xP)

Apparently, xP and xQ are coordinates of some points on an elliptic curve over a finite field $\textrm{GF}(p)$. In this case they represent residues modulo $p$, and operation % is not defined for them. If one wants to treat them as integers, a conversion lifting is needed: uu = int(xQ) lift(xQ) % int(xP)lift(xP)