Add two elliptic curve points.
(secp256k1+ point1 point2) addsFunction:
(defun secp256k1+ (point1 point2) (declare (xargs :guard (and (pointp point1) (pointp point2) (point-in-pxp-p point1 (secp256k1-field-prime)) (point-in-pxp-p point2 (secp256k1-field-prime)) (point-on-weierstrass-elliptic-curve-p point1 (secp256k1-field-prime) (secp256k1-a) (secp256k1-b)) (point-on-weierstrass-elliptic-curve-p point2 (secp256k1-field-prime) (secp256k1-a) (secp256k1-b))))) (curve-group-+ point1 point2 (secp256k1-field-prime) (secp256k1-a) (secp256k1-b)))