Subtract two points on the elliptic curve.
(ECPoint other, BigInteger p, BigInteger a)
| 211 | * Subtract two points on the elliptic curve. |
| 212 | */ |
| 213 | public ECPoint subtract(ECPoint other, BigInteger p, BigInteger a) { |
| 214 | ECPoint negOther = new ECPoint(other.x, p.subtract(other.y)); // Negate the Y coordinate |
| 215 | return this.add(negOther, p, a); // Add the negated point |
| 216 | } |
| 217 | |
| 218 | /** |
| 219 | * Multiply a point by a scalar (repeated addition). |
no test coverage detected