Point addition method P + Q = R where:
s = (yP - yQ)/(xP - xQ) mod p
xR = s2 - xP - xQ mod p
yR = -yP + s(xP - xR) mod p
public static pointAdd ( Bitpay\PointInterface $P, Bitpay\PointInterface $Q ) : Bitpay\PointInterface | ||
$P | Bitpay\PointInterface | |
$Q | Bitpay\PointInterface | |
return | Bitpay\PointInterface |